This commit is contained in:
parent
bcdb211253
commit
9c03ade41f
1 changed files with 10 additions and 2 deletions
|
|
@ -44,9 +44,17 @@ jobs:
|
||||||
- name: Ensure 'proxy' network exists
|
- name: Ensure 'proxy' network exists
|
||||||
run: docker network inspect proxy >/dev/null 2>&1 || docker network create proxy
|
run: docker network inspect proxy >/dev/null 2>&1 || docker network create proxy
|
||||||
|
|
||||||
# Pull the latest images referenced in docker-compose.yaml.
|
# Pull the latest images. Large images over a flaky path (e.g. IPv6 to the
|
||||||
|
# GHCR CDN) can drop mid-transfer, so retry a few times before giving up.
|
||||||
- name: Pull images
|
- name: Pull images
|
||||||
run: docker compose pull
|
run: |
|
||||||
|
for i in 1 2 3 4 5; do
|
||||||
|
docker compose pull && exit 0
|
||||||
|
echo "pull attempt $i failed; retrying in 15s..."
|
||||||
|
sleep 15
|
||||||
|
done
|
||||||
|
echo "pull failed after 5 attempts" >&2
|
||||||
|
exit 1
|
||||||
|
|
||||||
# Reconcile the stack: compose only recreates services whose config or
|
# Reconcile the stack: compose only recreates services whose config or
|
||||||
# image actually changed, and cleans up any services removed from the file.
|
# image actually changed, and cleans up any services removed from the file.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue