ci: add GitHub Actions workflow to publish Docker image to ghcr.io#8
Open
rudi193-cmd wants to merge 1 commit into
Open
ci: add GitHub Actions workflow to publish Docker image to ghcr.io#8rudi193-cmd wants to merge 1 commit into
rudi193-cmd wants to merge 1 commit into
Conversation
Closes zeroc00I#6. Builds and pushes a multi-platform image (linux/amd64 + linux/arm64) to ghcr.io on every push to main and on semver tags. - Triggers: push to main, semver tags (v*.*.*), PRs against main (build only, no push) - Registry: ghcr.io/zeroc00I/dontfeedtheai - Tags: latest on main, vX.Y.Z and vX.Y on semver tags - Uses GITHUB_TOKEN - no extra secrets required - GHA layer cache (type=gha) keeps rebuilds fast Users can now pull directly without cloning: docker pull ghcr.io/zeroc00I/dontfeedtheai:latest Co-Authored-By: Claude Sonnet 4.6 <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.
Closes #6.
Adds a GitHub Actions workflow that automatically builds and pushes a multi-platform Docker image to ghcr.io on every push to
mainand on semver tags — no extra secrets needed, onlyGITHUB_TOKEN.What this adds
.github/workflows/docker-publish.ymlghcr.io/zeroc00I/dontfeedtheailinux/amd64,linux/arm64mainpushlatest,mainv1.2.3,v1.2GITHUB_TOKEN— zero extra secretsAfter merge, users can pull directly
Or reference in a Compose file:
No local clone or build step required.