Prevent envsubst from replacing nginx variables
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Has been skipped
Podman Rootless Demo / deploy-prod (push) Failing after 49s

This commit is contained in:
continuist 2025-09-20 22:14:18 -04:00
parent 795d83c81a
commit 198d77de8a

View file

@ -249,8 +249,10 @@ jobs:
- name: Render nginx.conf and write to host
run: |
set -euo pipefail
apk add --no-cache gettext >/dev/null
envsubst < nginx/nginx.conf > /tmp/nginx.conf
apk add --no-cache gettext >/dev/null # envsubst
# Only substitute the vars we intend to: ${PROD_*_PORT}
envsubst '${PROD_FRONTEND_PORT} ${PROD_BACKEND_PORT}' < nginx/nginx.conf > /tmp/nginx.conf
podman --remote run --rm -i \
--userns=keep-id \
-v /opt/sharenet/nginx:/host-nginx:rw \