Skip to content

Container images - #5

Merged
mosaxiv merged 4 commits into
mosaxiv:mainfrom
james2doyle:docker-build
Feb 17, 2026
Merged

mosaxiv merged 4 commits into
mosaxiv:mainfrom
james2doyle:docker-build

Conversation

@james2doyle

@james2doyle james2doyle commented Feb 16, 2026 •

Copy link
Copy Markdown
Contributor

I saw the updates in #4 and this is my follow up. The goal is to allow the container images to be published on the Github container registry so that the images can be easily installed in a homelab or a remote server without having to clone or build from source.

Summary

This PR adds multiplatform Docker image builds (linux/amd64, linux/arm64) triggered on tag pushes using GoReleaser's native dockers_v2 feature.

Changes

  • .goreleaser.yaml: Replaced docker: section with dockers_v2: for native multiplatform manifest support
  • Dockerfile.goreleaser: New lightweight Dockerfile that copies pre-built binaries from GoReleaser (more efficient than rebuilding in Docker)
  • .github/workflows/goreleaser.yml: Added GHCR login step before GoReleaser runs

How It Works

  1. Tag push triggers the workflow
  2. GoReleaser builds binaries for all platforms
  3. dockers_v2 uses Buildx to create a multiplatform manifest and pushes to GHCR

Post-Merge

Testing

# Validate config
goreleaser check

# Local test (builds without publishing)
Owner=mosaxiv goreleaser release --snapshot --clean

# Trigger release
git tag v1.0.0 && git push origin v1.0.0

# Verify multiplatform manifest
docker manifest inspect ghcr.io/mosaxiv/clawlet:v1.0.0

@mosaxiv mosaxiv left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mosaxiv
mosaxiv merged commit e46e7aa into mosaxiv:main Feb 17, 2026
1 check passed
@james2doyle

Copy link
Copy Markdown
Contributor Author

Nice. Looks like it worked! https://github.com/mosaxiv/clawlet/pkgs/container/clawlet

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.

2 participants