Skip to content

Commit

Permalink
build: update cert init build stages for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 31, 2023
1 parent 2d42d0a commit 2354667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ COPY templates/dev/fmtm.conf.template \



FROM base as api-only-cert-init
FROM base as certs-init
# Replace /docker-entrypoint.sh
COPY 100-renew-certs.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand All @@ -102,7 +102,7 @@ COPY templates/cert-init/fmtm.conf.template \



FROM api-only-cert-init as all-cert-init
FROM certs-init as certs-init-all
COPY templates/cert-init/odk.conf.template \
templates/cert-init/minio.conf.template \
/etc/nginx/templates/
Expand Down
4 changes: 2 additions & 2 deletions nginx/build_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

docker build nginx \
--tag "ghcr.io/hotosm/fmtm/certs-init:latest" \
--target api-only-cert-init \
--target certs-init \
--build-arg NGINX_TAG="${NGINX_TAG:-1.25.2}"

if [[ -n "$PUSH_IMGS" ]]; then
Expand All @@ -11,7 +11,7 @@ fi

docker build nginx \
--tag "ghcr.io/hotosm/fmtm/certs-init-all:latest" \
--target all-cert-init \
--target certs-init-all \
--build-arg NGINX_TAG="${NGINX_TAG:-1.25.2}"

if [[ -n "$PUSH_IMGS" ]]; then
Expand Down

0 comments on commit 2354667

Please sign in to comment.