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,18 +116,27 @@ jobs:
116116 working-directory : /
117117 comment : Deploy
118118 command : |
119+
120+ export DOPPLER_TOKEN="${{ secrets.DOPPLER_TOKEN }}"
121+
119122 docker pull ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
120-
123+
121124 docker stop app1 2>/dev/null || true
122125 docker rm app1 2>/dev/null || true
123-
124- export DOPPLER_TOKEN="${{ secrets.DOPPLER_TOKEN }}"
125- doppler secrets download --project waitfair --config prd --format env-no-quotes --no-file > /tmp/doppler.env
126+
127+ doppler secrets download \
128+ --project waitfair \
129+ --config prd \
130+ --format env-no-quotes \
131+ --no-file \
132+ | docker run -d \
133+ --name app1 \
134+ --restart unless-stopped \
135+ --network common \
136+ -p 8080:8080 \
137+ --env-file /dev/stdin \
138+ ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
139+
126140 unset DOPPLER_TOKEN
127-
128- docker run -d --name app1 --network common -p 8080:8080 \
129- --env-file /tmp/doppler.env \
130- ghcr.io/${{ needs.buildImageAndPush.outputs.owner_lc }}/${{ needs.buildImageAndPush.outputs.image_name }}:latest
131-
132- rm -f /tmp/doppler.env
141+
133142 docker image prune -f
You can’t perform that action at this time.
0 commit comments