pull :main before stack deploy so swarm uses the freshly built image

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Felix FaerberandClaude Opus 4.7 committed 2026-05-27 14:57:11 +03:00
1 parent 6f0c8403d1
commit 3244848ae0
1 file changed
+1
+1
View File
@@ -55,5 +55,6 @@ jobs:
key: ${{ secrets.SSH_PRIV_KEY }} key: ${{ secrets.SSH_PRIV_KEY }}
script: | script: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker pull ghcr.io/token-for-token/hosted-gateway:main
docker stack deploy -c ~/devops/hostinger/prod-stack.yaml prod --with-registry-auth --resolve-image always docker stack deploy -c ~/devops/hostinger/prod-stack.yaml prod --with-registry-auth --resolve-image always
docker image prune -f --filter "until=24h" docker image prune -f --filter "until=24h"