feat(wait-for-docker-publish): add action to wait for image to appear in a registry - #1956
Merged
Conversation
phlope
previously approved these changes
Jun 1, 2026
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.
dylwylie
force-pushed
the
wait-for-docker-publish
branch
from
June 10, 2026 09:24
45c4da4 to
694f80b
Compare
NickAnge
approved these changes
Jun 10, 2026
blewis12
added a commit
to grafana/alloy
that referenced
this pull request
Jun 25, 2026
…ondition (#6585) This PR incorporates the [GAR mirror wait action](grafana/shared-workflows#1956) into workflows where there could be a race condition if mirror fails or is slow: 1. `publish-alloy-devel.yml` => this workflow will first publish devel images to GAR, then immediately proceeds to open a PR against `deployment_tools`. We can insert a wait action between the former and latter steps 2. `trigger-argo-workflow-on-tag.yml` => this workflow will trigger an argo deployment workflow that deploys devel images to our internal environment for testing, we can use this wait action as a check to ensure that mirroring is complete before we start opening any PR's against `deployment_tools` as part of the argo workflow --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.