Skip to content

Publish and sign release images from tags only - #28

Merged
AnHeuermann merged 1 commit into
mainfrom
fix-tag-signing
Aug 20, 2026
Merged

AnHeuermann merged 1 commit into
mainfrom
fix-tag-signing

Conversation

@AnHeuermann

Copy link
Copy Markdown
Member

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.

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>
@AnHeuermann AnHeuermann self-assigned this Aug 20, 2026
@AnHeuermann
AnHeuermann enabled auto-merge (squash) August 20, 2026 13:29
@AnHeuermann
AnHeuermann merged commit c0b5fdf into main Aug 20, 2026
10 checks passed
@AnHeuermann
AnHeuermann deleted the fix-tag-signing branch August 20, 2026 13:41
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