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
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:
parent
795d83c81a
commit
198d77de8a
1 changed files with 4 additions and 2 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue