Add Docker image publishing to release workflow - #73
Merged
Conversation
Adds a docker job that reuses the already-built static Linux binaries to build and push multi-arch (amd64/arm64) images to GHCR. Uses a minimal scratch-based Dockerfile with no Rust compilation inside Docker. Images are tagged with semver versions (e.g. 0.1.12, 0.1, 0) and published to ghcr.io/andrewring/github-distributed-owners. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Old tags don't have the Dockerfile, so checking out at the tag ref fails. Generate it inline in the workflow instead — the repo copy remains for documentation/discoverability. Also removes the now-unnecessary contents: read permission from the docker job. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The docker job generates this inline in the workflow, so the repo copy is dead code. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Add Swatinem/rust-cache to the build matrix for faster re-runs and sequential backfill builds - Add update_tags input to workflow_dispatch (default: false) to control whether floating Docker tags (latest, major, major.minor) are updated. Backfill runs now only push the exact version tag. The release trigger always updates all tags. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Artifact upload/download strips the execute bit. Use COPY --chmod=755 (supported by BuildKit/buildx) to restore it in the scratch image. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Adds a summary job that logs all workflow parameters (tag, commit, trigger, actor, clobber, update_tags) to both the Actions log and the job summary page as a markdown table. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.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.
Summary
Adds multi-arch Docker image publishing to GHCR as part of the release workflow.
scratch-based Dockerfile (4 lines)linux/amd64andlinux/arm64ghcr.io/andrewring/github-distributed-ownersdocker/metadata-action:0.1.12,0.1,0contents: read+packages: writeOne-time setup after first push
github-distributed-ownerspackageTest plan
workflow_dispatchfor a tag and verify image appears in GHCRdocker manifest inspect ghcr.io/andrewring/github-distributed-owners:<tag>docker run --rm ghcr.io/andrewring/github-distributed-owners:<tag> --versionGenerated with Devin