Fix: Force pull images in deploy workflow
All checks were successful
Build and Push / build-all (push) Successful in 18s
All checks were successful
Build and Push / build-all (push) Successful in 18s
This commit is contained in:
parent
52fa815b3e
commit
48d5aec90c
1 changed files with 4 additions and 4 deletions
|
|
@ -117,11 +117,11 @@ jobs:
|
||||||
# Login to registry
|
# Login to registry
|
||||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
# Pull latest images
|
# Pull latest images (force to bypass cache)
|
||||||
docker compose pull
|
docker compose pull --ignore-pull-failures
|
||||||
|
|
||||||
# Bring up services with zero-downtime restart
|
# Bring up services with fresh images
|
||||||
docker compose up -d --remove-orphans
|
docker compose up -d --pull always --remove-orphans
|
||||||
|
|
||||||
# Prune old images
|
# Prune old images
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue