File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,22 +116,22 @@ jobs:
116116 working-directory : /
117117 comment : Deploy
118118 command : |
119- bash -lc '
120- export DOPPLER_TOKEN="${{ secrets.DOPPLER_TOKEN }}"
121-
122- docker pull ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
123-
124- docker stop app1 2>/dev/null || true
125- docker rm app1 2>/dev/null || true
126-
127- doppler secrets download --project waitfair --config prd --format env-no-quotes --no-file | \
128- docker run -d \
129- --name app1 \
130- --network common \
131- -p 8080:8080 \
132- --env-file /dev/stdin \
133- ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
134-
135- unset DOPPLER_TOKEN
136- docker image prune -f
137- '
119+ export DOPPLER_TOKEN="${{ secrets.DOPPLER_TOKEN }}"
120+
121+ docker pull ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
122+
123+ docker stop app1 2>/dev/null || true
124+ docker rm app1 2>/dev/null || true
125+
126+ doppler secrets download --project waitfair --config prd --format env-no-quotes --no-file > /tmp/doppler.env
127+
128+ docker run -d \
129+ --name app1 \
130+ --network common \
131+ -p 8080:8080 \
132+ --env-file /tmp/doppler.env \
133+ ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
134+
135+ rm -f /tmp/doppler.env
136+ unset DOPPLER_TOKEN
137+ docker image prune -f
You can’t perform that action at this time.
0 commit comments