Skip to content

fix(docker-build-push-ecr): build backfills from the tag, not the dispatch branch - #100

Open
sebasnallar wants to merge 1 commit into
mainfrom
fix/backfill-checkout-ref
Open

fix(docker-build-push-ecr): build backfills from the tag, not the dispatch branch#100
sebasnallar wants to merge 1 commit into
mainfrom
fix/backfill-checkout-ref

Conversation

@sebasnallar

Copy link
Copy Markdown
Contributor

Latent correctness bug in every existing_tag recovery path: docker-build-push-ecr.yml did a bare checkout, so a backfill dispatched from a branch built the image from that branch's head, not from the tagged commit. It has only worked so far because the dispatches happened while the branch head and the tag coincided.

Changes

  • docker-build-push-ecr.yml: optional ref input (default '' = the triggering ref — normal tag-push behavior unchanged), wired into the checkout.
  • release-publish-oci.yml: the publish call passes ref: ${{ inputs.existing_tag || '' }}, so every caller's backfill now builds the tag's actual content.

Needed for the scopes v1.16.1 recovery (nullplatform/scopes#240 passes the same ref from its dispatch) — that plan deliberately never touches the existing tag.

🤖 Generated with Claude Code

…patch branch

The checkout was bare, so an existing_tag recovery dispatch built the
image from the branch that dispatched it instead of the tagged commit —
correct only when they coincide. Adds an optional ref input (empty =
triggering ref, preserving normal behavior) and passes existing_tag
through from release-publish-oci's publish call.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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