feat(wait-for-docker-publish): add action to wait for image to appear in a registry#1956
Open
dylwylie wants to merge 16 commits into
Open
feat(wait-for-docker-publish): add action to wait for image to appear in a registry#1956dylwylie wants to merge 16 commits into
dylwylie wants to merge 16 commits into
Conversation
docker manifest inspect defaults to HTTPS and produces a misleading 'no such manifest' for HTTP-only registries like the registry:2 service container. ttl.sh is anonymous, HTTPS-served, and auto-expires images, so the test exercises the same code path real callers will hit.
- Include github.run_attempt in the test tag so workflow reruns don't collide with the previous attempt's image (run_id stays the same across reruns; only run_attempt increments). - Reject initial-interval/max-interval < 1s in wait.sh. A zero value turned the loop into a hot poller against the timeout budget. - Add an outputs: block to the publish job in the README example so needs.publish.outputs.digest actually resolves.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Wait for an image to appear in an OCI registry, or fail after a timeout. Used to bridge the async GAR→DockerHub mirror, consumers can gate downstream work on the DockerHub side catching up.
Polls `docker manifest inspect` with exponential backoff until success or timeout.