Skip to content

ci: add GitHub Actions workflow to publish Docker image to ghcr.io#8

Open
rudi193-cmd wants to merge 1 commit into
zeroc00I:mainfrom
rudi193-cmd:feat/docker-publish-workflow
Open

ci: add GitHub Actions workflow to publish Docker image to ghcr.io#8
rudi193-cmd wants to merge 1 commit into
zeroc00I:mainfrom
rudi193-cmd:feat/docker-publish-workflow

Conversation

@rudi193-cmd

Copy link
Copy Markdown
Contributor

Closes #6.

Adds a GitHub Actions workflow that automatically builds and pushes a multi-platform Docker image to ghcr.io on every push to main and on semver tags — no extra secrets needed, only GITHUB_TOKEN.

What this adds

.github/workflows/docker-publish.yml

Setting Value
Registry ghcr.io/zeroc00I/dontfeedtheai
Platforms linux/amd64, linux/arm64
Tags on main push latest, main
Tags on semver tag v1.2.3, v1.2
PR builds build only, no push
Cache GHA layer cache (fast rebuilds)
Auth GITHUB_TOKEN — zero extra secrets

After merge, users can pull directly

docker pull ghcr.io/zeroc00I/dontfeedtheai:latest

Or reference in a Compose file:

services:
  dontfeedtheai:
    image: ghcr.io/zeroc00I/dontfeedtheai:latest

No local clone or build step required.

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>
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.

[Feature Request] Automatically publish official Docker image

1 participant