From be2d18a3f35bf6ecee4c28638489c61bf9f8286c Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:58:05 +0100 Subject: [PATCH] Retry image pushes on transient registry errors The scheduled release on 2026-11-23 lost the arm64 v4.2 build because one layer upload to ghcr.io got a 500. `docker push` ran once, the step failed, and process-tags skipped all 40 v4.2 / php8.4 logical tags for that run. Run both `docker push` calls (plain and hardened) through the existing with-retry.sh (3 attempts, 10s then 20s backoff). A push that still fails after the retries fails the step as before. Co-Authored-By: Claude --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5eea943..403b2a15 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -221,7 +221,7 @@ jobs: # Plain ships unconditionally, before the gate ever runs. # Do NOT rmi here: the gate step patches this image into the hardened one. if [[ "$PUSH" == "true" ]]; then - printf '%s\n' "${PLAIN_TAGS[@]}" | xargs -P 4 -I {} docker push "{}" + printf '%s\n' "${PLAIN_TAGS[@]}" | xargs -P 4 -I {} _ci/.github/scripts/with-retry.sh docker push "{}" PLAIN_DIGEST=$(docker inspect --format '{{index .RepoDigests 0}}' "$PLAIN_IMAGE" 2>/dev/null | sed 's/.*@//') echo "${PLAIN_DIGEST:-unpublished}" > ".docker-state/${imageVariant}/plain_digest.txt" @@ -319,7 +319,7 @@ jobs: done if [[ "$PUSH_HARDENED" == "true" ]]; then - printf '%s\n' "${HARDENED_TAGS[@]}" | xargs -P 4 -I {} docker push "{}" + printf '%s\n' "${HARDENED_TAGS[@]}" | xargs -P 4 -I {} _ci/.github/scripts/with-retry.sh docker push "{}" HARDENED_DIGEST=$(docker inspect --format '{{index .RepoDigests 0}}' "$HARDENED_IMAGE" 2>/dev/null | sed 's/.*@//') echo "${HARDENED_DIGEST:-unpublished}" > ".docker-state/${imageVariant}/hardened_digest.txt"