From 9c03ade41f4c583ddd2c769bf16c2b88daff5d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B8=D0=B4=20=D0=9E=D0=BC=D0=B0=D1=80=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=B4=D1=85=D0=B0=D1=82?= Date: Sat, 25 Jul 2026 22:09:26 +0500 Subject: [PATCH] fix ci --- .forgejo/workflows/deploy.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 0b23586..1961e6a 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -44,9 +44,17 @@ jobs: - name: Ensure 'proxy' network exists 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 - 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 # image actually changed, and cleans up any services removed from the file.