Repository navigation
Publish and sign release images from tags only - #28
Merged
Merged
Conversation
ghcr.io/openmodelica/crossbuild:v1.27.0 carried no cosign signature because it was never built by publish.yml. That workflow only triggered on `release: published`, and no GitHub release for v1.27.0 was ever made. Instead build.yml, which triggers on `push: tags: v*` and does not sign, pushed the image when the tag was pushed - and with the default `latest=auto` flavor of metadata-action it overwrote `latest` too. - publish.yml now triggers on `push: tags: v*` instead of `release: published`, so every pushed tag is built, pushed and signed. Creating a release from a new tag pushes that tag as well, so the release flow stays covered; existing tags can be re-published with workflow_dispatch on the tag. - build.yml no longer builds tag refs. Release tags and `latest` are published exclusively by publish.yml so that no unsigned image can end up under them. - build.yml passes metadata-action's `labels` to build-push-action. The images it pushed were missing all OCI metadata labels. - Drop the hardcoded org.opencontainers.image.version from the Dockerfile, it still claimed v1.26.0-dev inside the v1.27.0 image. The label now comes from metadata-action. - Update all actions to their latest release and pin them to commit SHAs. - Group Dependabot's GitHub Actions updates into a single pull request. Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.
ghcr.io/openmodelica/crossbuild:v1.27.0 carried no cosign signature because it was never built by publish.yml. That workflow only triggered on
release: published, and no GitHub release for v1.27.0 was ever made. Instead build.yml, which triggers onpush: tags: v*and does not sign, pushed the image when the tag was pushed - and with the defaultlatest=autoflavor of metadata-action it overwrotelatesttoo.push: tags: v*instead ofrelease: published, so every pushed tag is built, pushed and signed. Creating a release from a new tag pushes that tag as well, so the release flow stays covered; existing tags can be re-published with workflow_dispatch on the tag.latestare published exclusively by publish.yml so that no unsigned image can end up under them.labelsto build-push-action. The images it pushed were missing all OCI metadata labels.