Skip to content

Commit 6e6b446

Browse files
Merge branch 'devs' into release
2 parents 51a257a + 0514c85 commit 6e6b446

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,13 @@ jobs:
201201
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
202202
run: |
203203
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
204-
docker push "${{ steps.meta.outputs.ref }}"
204+
# GHCR occasionally answers "unknown blob" mid-push; retry with backoff.
205+
for attempt in 1 2 3 4; do
206+
docker push "${{ steps.meta.outputs.ref }}" && break
207+
[ "$attempt" -eq 4 ] && exit 1
208+
echo "::warning::push attempt $attempt failed; retrying"
209+
sleep $((attempt * 10))
210+
done
205211
echo "Published \`${{ steps.meta.outputs.ref }}\`" >> "$GITHUB_STEP_SUMMARY"
206212
207213
deploy-staging:

0 commit comments

Comments
 (0)