diff --git a/.github/workflows/update-stage.yml b/.github/workflows/update-stage.yml index 17be867..9dbd265 100644 --- a/.github/workflows/update-stage.yml +++ b/.github/workflows/update-stage.yml @@ -35,9 +35,13 @@ jobs: run: | docker compose --profile caddy up -d --no-recreate - - name: Copy Caddyfile into Caddy Container + - name: Set Caddyfile Environment Variables env: - AWS_REQ_IP: ${{ secrets.AWS_NAT_IP }} + AWS_REQ_IP: ${{ secrets.AWS_REQ_IP}} + run: | + sed -i "s/{$AWS_REQ_IP}/$AWS_REQ_IP/" ./Caddyfile + + - name: Copy Caddyfile into Caddy Container run: | docker cp ./Caddyfile caddy:/etc/caddy/Caddyfile