Try replacing --replace in prod deployment stage
All checks were successful
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) Successful in 38s

This commit is contained in:
continuist 2025-10-25 21:40:17 -04:00
parent ce1b04b8dd
commit 1b1215b4ed

View file

@ -293,19 +293,19 @@ jobs:
docker.io/nginx:alpine \ docker.io/nginx:alpine \
sh -lc 'nginx -t -c /etc/nginx/nginx.conf' sh -lc 'nginx -t -c /etc/nginx/nginx.conf'
# APPLY/RE-APPLY THE POD (no explicit "down"; use --replace) # If --replace is NOT supported in your Podman, use this fallback instead:
- name: Apply pod (kube play --replace) - name: Recreate pod (fallback)
run: | run: |
set -euo pipefail set -euo pipefail
# If your Podman supports --replace, this is the cleanest: podman --remote pod rm -f sharenet-production-pod 2>/dev/null || true
envsubst < deploy/prod-pod.yml | podman --remote kube play --replace - envsubst < deploy/prod-pod.yml | podman --remote kube play -
# If --replace is NOT supported in your Podman, use this fallback instead: # If --replace IS supported in your Podman, use this instead:
# - name: Recreate pod (fallback) # - name: Apply pod (kube play --replace)
# run: | # run: |
# set -euo pipefail # set -euo pipefail
# podman --remote pod rm -f sharenet-production-pod 2>/dev/null || true # # If your Podman supports --replace, this is the cleanest:
# envsubst < deploy/prod-pod.yml | podman --remote kube play - # envsubst < deploy/prod-pod.yml | podman --remote kube play --replace -
# VERIFY (install curl first) # VERIFY (install curl first)
- name: Verify in-pod Nginx - name: Verify in-pod Nginx