Skip to content

Publish build dir changes to official-images - #305

Merged
cap10morgan merged 1 commit into
masterfrom
official-images-content-changes
Nov 9, 2026
Merged

cap10morgan merged 1 commit into
masterfrom
official-images-content-changes

Conversation

@cap10morgan

Copy link
Copy Markdown
Collaborator

The fix for #301 merged in #304 but never reached docker-library/official-images. library/clojure still points at be6ebe7, so the published images still have the old entrypoint.

The official-images workflow compares our generated manifest with the published one and ignores GitCommit lines, since those always differ. The manifest only lists tags, directories, and architectures, so a PR was only opened when one of those changed. #304 changed only the entrypoint file inside existing build dirs, so the comparison found nothing (run: open-official-images-pr was skipped). Any earlier change to files in the build dirs, without a tag change, would have been skipped the same way.

Change

The compare job also checks out this repo with full history. If the manifests match apart from GitCommit, it runs git diff on target/ between the published commit and the one in our manifest, and opens the PR if they differ. Merges that don't touch target/ (README, tests, CI) still don't open a PR. If the published commit is missing from our history, the job treats it as changed and opens the PR.

Testing

I extracted the new step's script from the workflow and ran it against the live library/clojure manifest and this repo's history:

Our commit Published commit Result
46f4b00 (master, #304 regenerated) be6ebe7 changed: build dirs differ
3ad9bed (target/ same as published) be6ebe7 not changed
46f4b00 unknown commit changed
3ad9bed + an added tag be6ebe7 changed: manifests differ

After this merges, its CI run should trigger the workflow, which should open the official-images PR for #301 because target/ has changed since be6ebe7.

🤖 Generated with Claude Code

The manifest comparison ignored GitCommit lines, so the workflow only
opened an official-images PR when tags, directories, or architectures
changed. Changes to files in the build dirs, like the entrypoint fix for
#301, were never published. Also open the PR when target/ changed between
the published commit and ours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cap10morgan
cap10morgan merged commit fec6f92 into master Nov 9, 2026
5 checks passed
@cap10morgan
cap10morgan deleted the official-images-content-changes branch November 9, 2026 15:57
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