Skip to content

fix(release-publish-oci): build the tag's code, not the run's checkout - #94

Open
sebasnallar wants to merge 1 commit into
mainfrom
fix/publish-checkout-tag
Open

fix(release-publish-oci): build the tag's code, not the run's checkout#94
sebasnallar wants to merge 1 commit into
mainfrom
fix/publish-checkout-tag

Conversation

@sebasnallar

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #93. The chained pipeline runs on the main branch (that's what makes it trigger at all), and docker-build-push-ecr.yml checks out the triggering commit. For a fresh release that's exactly the tagged commit — but in existing_tag recovery/backfill mode, main has moved on: the image would be built from today's main and pushed under the old tag.

Change

  • docker-build-push-ecr.yml: new optional ref input (checkout ref; empty = the triggering commit, so all existing callers are untouched).
  • release-publish-oci.yml: passes the tag being published as ref in both modes — the built code is always the tag's code, by construction rather than by coincidence.

Test plan

  • YAML + actionlint clean.
  • scopes-lambda existing_tag dispatch for an old tag builds that tag's tree (verify image digest ≠ a main build).

🤖 Generated with Claude Code

The chained pipeline always runs on the main branch — that is what
makes it trigger at all — so docker-build-push-ecr's default checkout
(the triggering commit) builds main. For a fresh release that
coincides with the tagged commit, but in existing_tag recovery or
backfill mode main has moved on: the image would carry the old tag
over new code.

Add a `ref` input to docker-build-push-ecr (empty = triggering commit,
fully backward compatible) and have release-publish-oci pass the tag
being published in both modes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sebasnallar
sebasnallar requested a review from fedemaleh August 26, 2026 13:01
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