Skip to content

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
mainfrom
wait-for-docker-publish
Open

feat(wait-for-docker-publish): add action to wait for image to appear in a registry#1956
dylwylie wants to merge 16 commits into
mainfrom
wait-for-docker-publish

Conversation

@dylwylie
Copy link
Copy Markdown
Contributor

@dylwylie dylwylie commented May 26, 2026

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.

dylwylie added 15 commits May 26, 2026 15:11
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 dylwylie marked this pull request as ready for review May 28, 2026 10:11
@dylwylie dylwylie requested a review from a team as a code owner May 28, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant