ci: build & sign processgit-updater image paired with the main image#129
Merged
Conversation
Extends the release workflow to also build a multi-arch Docker image for the updater sidecar (added in PR #128) on every semver tag push. Same machinery as the main image: buildx multi-arch (linux/amd64 + linux/arm64), GHA cache, cosign keyless signing with inline verify, opencontainers labels. After this lands, every release will publish: ghcr.io/algomation-ai/processgit:VERSION (main app) ghcr.io/algomation-ai/processgit-updater:VERSION (sidecar; new) Tags follow the same scheme: immutable :VERSION + moving :MAJOR.MINOR, :MAJOR, :latest on stable releases; pre-releases get only :VERSION-X. The updater image is built from `updater/Dockerfile`, the multi-stage build added in PR #128 (golang:1.25-alpine3.22 → alpine:3.22 with docker-cli + cosign + the updater binary). Co-authored-by: Claude <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.
ci: build & sign
processgit-updaterimage paired with the main imageExtends the release workflow to also build a multi-arch Docker image for the updater sidecar (added in #128) on every semver tag push.
After this lands, every release publishes two signed images:
ghcr.io/algomation-ai/processgit:VERSIONghcr.io/algomation-ai/processgit-updater:VERSIONSame machinery as the main image:
linux/amd64+linux/arm64)type=gha,scope=updater) so updater builds don't evict main-image cache and vice versacosign verifysmoke testVERSION+COMMITfrom the version-derivation step into the updater binary'smain.versionvia-ldflagsTag scheme
Identical to the main image:
vX.Y.Z→:X.Y.Z(immutable) +:X.Y+:X+:lateston stablevX.Y.Z-rc1→ only:X.Y.Z-rc1Verification
After a release:
docker pull ghcr.io/algomation-ai/processgit-updater:0.1.0 cosign verify ghcr.io/algomation-ai/processgit-updater:0.1.0 \ --certificate-identity-regexp '^https://github.com/Algomation-AI/ProcessGit/\.github/workflows/release\.yml@.*' \ --certificate-oidc-issuer https://token.actions.githubusercontent.comWhat this PR does NOT do
release.json. The current schema only describes the main image. Could be extended to acompanion_imagesfield later; out of scope here.Validation
release.ymlvalidatedactionlintinstall in dev env)