Add multi-arch docker builds and ghcr publishing#4
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive Docker support to vizdisk, enabling multi-architecture container builds (amd64 and arm64) with automated publishing to GitHub Container Registry. The changes streamline the installation and deployment process by providing pre-built Docker images alongside traditional binary releases.
Key changes:
- Added production-optimized
Dockerfile.releasewith minimal Alpine base image and ncdu runtime dependency - Configured GoReleaser to build multi-arch Docker images and create unified manifests for version tags and
latest - Updated GitHub Actions workflow with package publishing permissions for GHCR
- Reorganized README with three installation options: binary download, Docker, and building from source
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| Dockerfile.release | New minimal Alpine-based Dockerfile for release builds with ncdu and environment configuration |
| .goreleaser.yaml | Added Docker build configurations for amd64/arm64 architectures and manifest creation for GHCR publishing |
| .github/workflows/release.yml | Added packages: write permission to enable publishing Docker images to GHCR |
| README.md | Restructured installation section with Docker-first approach and updated usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.
This pull request introduces Docker support for the project, enabling multi-architecture builds and simplifying installation and usage. The main changes include adding a production-ready Dockerfile, updating the release workflow to support publishing Docker images, and updating the documentation to reflect these new installation options.
Docker support and release process:
Dockerfile.releasefor building minimal Docker images withvizdiskand its runtime dependency (ncdu)..goreleaser.yamlto build and publish multi-architecture Docker images (amd64 and arm64) and create Docker manifests for both versioned andlatesttags..github/workflows/release.ymlto grant permissions for publishing Docker images to the GitHub Container Registry.Documentation improvements:
README.mdto include new installation instructions: downloading binaries, running via Docker, and building from source. Provided example Docker usage and clarified local usage steps.