Skip to content

Commit 7d21354

Browse files
Updated containers to allow our local-ca container to double as our acme container as needed
1 parent 89b215d commit 7d21354

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/build_containers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
type=schedule
2626
type=ref,event=branch
2727
type=ref,event=pr
28-
type=semver,pattern={{version}}
29-
type=semver,pattern={{major}}.{{minor}}
30-
type=semver,pattern={{major}}
28+
type=semver,pattern=v{{version}}
29+
type=semver,pattern=v{{major}}.{{minor}}
30+
type=semver,pattern=v{{major}}
3131
type=sha
3232
- name: setup Docker Buildx
3333
uses: docker/setup-buildx-action@v3

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM cgr.dev/chainguard/wolfi-base
22
#install step dependencies
3-
RUN apk add --no-cache wget step step-ca bash
3+
RUN apk add --no-cache wget step step-ca bash acme.sh
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
1011

1112
VOLUME ["/home/step", "/root-ca"]
1213

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ function step_ca_init () {
8383
# First we put the root ca cert and intermediate cert in the easiest place to find it in the volume
8484
cp /home/step/certs/root_ca.crt /root-ca/root_ca.crt
8585
cp /home/step/certs/intermediate_ca.crt /root-ca/intermediate_ca.crt
86+
chmod 444 /root-ca/*.crt
8687
# Then we set up the files in the right place for the step client to find them
8788
mkdir -p /root-ca/step/certs
8889
cp /home/step/certs/root_ca.crt /root-ca/step/certs/root_ca.crt

0 commit comments

Comments
 (0)