-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
workflows/docker: add Docker Hub push fallback #20838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Patrick Linnane <patrick@linnane.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a fallback mechanism for Docker Hub push operations when the primary docker buildx imagetools create command fails. Instead of exiting with an error after 3 attempts, the workflow now falls back to manually pulling, tagging, and pushing images to Docker Hub.
- Replaces hard failure after 3 attempts with a manual push fallback
- Implements a loop to pull source images and tag them with target tags
- Uses standard
docker pushcommands as an alternative tobuildx imagetools
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
workflows/docker: add Docker Hub push fallback
brew stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?We often get 400 errors even with retries when using
docker buildx imagetoolsto push to Docker Hub. Let's try to fall back to a manual push in case that happens.