Repository navigation
Retry image pushes on transient registry errors - #270
Merged
Merged
Conversation
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 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The workflow changes apply the existing retry helper to both plain and hardened image-push paths while preserving parallelism and failure behavior, with no active review issues identified.
No open issues 🎉
What changed in this PR
Updates the release workflow to retry transient registry failures during plain and hardened image pushes using the existing retry helper.
Changes:
- Wraps plain image pushes with
with-retry.sh. - Wraps hardened image pushes with
with-retry.sh. - Preserves parallelism and failure behavior after all retry attempts are exhausted.
| File | Description |
|---|---|
| .github/workflows/release.yml | Adds retry handling to plain and hardened Docker image pushes. |
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #269, same cause one step earlier.
Problem
The scheduled release run on 2026-11-23 failed in one build job (arm64, v4.2, PHP 8.4): a single layer upload to ghcr.io was answered with
500 Internal Server Error. The parallel pushes of the same image went through seconds later, so the registry was only briefly unhappy.Run: https://github.com/pimcore/docker/actions/runs/45101019343
docker pushruns once per tag with no retry. The step failed, the job never recorded its tags, andprocess-tagsskipped all 40 v4.2 / php8.4 logical tags ("only one arch pushed this run"). They stay on the previous build until the next run.Change
Run both
docker pushcalls inrelease.yml(plain and hardened) through the existingwith-retry.sh(3 attempts, 10 s then 20 s backoff), the helper the same job already uses for Trivy. A push that still fails after the retries fails the step exactly as before.Verification
The push only runs in release runs, so this PR's checks cover the workflow lint only. Checked locally with the exact command against a temporary local registry:
actionlint1.7.7 and.github/scripts/tests/run.shpass locally.Trade-off
A push that cannot succeed now takes about 30 s longer to fail.
🤖 Generated with Claude Code