Skip to content

Commit c9c4e67

Browse files
Separate local-ca from acme container
1 parent 9d83eda commit c9c4e67

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

.github/workflows/build_containers.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
packages: write
99
contents: read
1010
jobs:
11-
build:
11+
build-local-ca:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: check out the repo
@@ -44,3 +44,40 @@ jobs:
4444
push: ${{ github.event_name != 'pull_request' }}
4545
tags: ${{ steps.meta.outputs.tags }}
4646
labels: ${{ steps.meta.outputs.labels }}
47+
build-acmesh:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: check out the repo
51+
uses: actions/checkout@v4
52+
- name: Docker meta
53+
id: meta
54+
uses: docker/metadata-action@v5
55+
with:
56+
# list of Docker images to use as base name for tags
57+
images: |
58+
ghcr.io/openchami/acme.sh
59+
# generate Docker tags based on the following events/attributes
60+
tags: |
61+
type=schedule
62+
type=ref,event=branch
63+
type=ref,event=pr
64+
type=semver,pattern=v{{version}}
65+
type=semver,pattern=v{{major}}.{{minor}}
66+
type=semver,pattern=v{{major}}
67+
type=sha
68+
- name: setup Docker Buildx
69+
uses: docker/setup-buildx-action@v3
70+
- name: Login to github container repo
71+
uses: docker/login-action@v3
72+
with:
73+
registry: ghcr.io
74+
username: ${{ github.actor }}
75+
password: ${{ secrets.GITHUB_TOKEN }}
76+
- name: Build and push
77+
uses: docker/build-push-action@v5
78+
with:
79+
context: .
80+
file: Dockerfile.acme
81+
push: ${{ github.event_name != 'pull_request' }}
82+
tags: ${{ steps.meta.outputs.tags }}
83+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM cgr.dev/chainguard/wolfi-base
22
#install step dependencies
3-
RUN apk add --no-cache wget step step-ca bash acme.sh
3+
RUN apk add --no-cache wget step step-ca bash
44

55
ENV CONFIGPATH="/home/step/config/ca.json"
66
ENV PWDPATH="/home/step/secrets/password"
77
ENV STEPPATH="/home/step"
88

99
RUN mkdir /root_ca
10-
RUN mkdir /root/.acme.sh
10+
1111

1212
VOLUME ["/home/step", "/root-ca"]
1313

Dockerfile.acme

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM cgr.dev/chainguard/wolfi-base
2+
#install step dependencies
3+
RUN apk add --no-cache curl openssl acme.sh
4+
5+
RUN mkdir /root/.acme.sh
6+
7+
ENTRYPOINT [ "/usr/bin/acme.sh" ]

0 commit comments

Comments
 (0)