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
|
- name: Render nginx.conf and write to host
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
apk add --no-cache gettext >/dev/null
|
apk add --no-cache gettext >/dev/null # envsubst
|
||||||
envsubst < nginx/nginx.conf > /tmp/nginx.conf
|
# 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 \
|
podman --remote run --rm -i \
|
||||||
--userns=keep-id \
|
--userns=keep-id \
|
||||||
-v /opt/sharenet/nginx:/host-nginx:rw \
|
-v /opt/sharenet/nginx:/host-nginx:rw \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue