Skip to content

fix: docker build for goreleaser#85

Merged
fentas merged 3 commits intomainfrom
fix/docker
Aug 22, 2025
Merged

fix: docker build for goreleaser#85
fentas merged 3 commits intomainfrom
fix/docker

Conversation

@fentas
Copy link
Owner

@fentas fentas commented Aug 22, 2025

This pull request updates the Docker build and release process to improve multi-architecture support and streamline the Dockerfile for use with GoReleaser. The changes separate Docker image builds for amd64 and arm64 architectures, introduce Docker manifest creation for multi-arch tags, and simplify the Dockerfile to expect pre-built binaries from GoReleaser.

Multi-architecture Docker image support:

  • The .goreleaser.yaml file now defines separate dockers entries for amd64 and arm64, each with its own image_templates and platform-specific build flags. This replaces the previous single multi-platform build setup. [1] [2]
  • Added a docker_manifests section to .goreleaser.yaml to automatically create multi-architecture image tags (e.g., ghcr.io/fentas/b:latest and ghcr.io/fentas/b:{{ .Tag }}) that reference both the amd64 and arm64 images.

Dockerfile simplification for GoReleaser:

  • The Dockerfile is simplified to use a single scratch stage, copying in the pre-built binary (b) provided by GoReleaser, instead of building the binary within the Docker build process.
  • CA certificates are now copied from the official alpine:latest image rather than from a build stage, further minimizing the final image and decoupling it from the build process.

@fentas fentas merged commit 0c19bae into main Aug 22, 2025
@fentas fentas deleted the fix/docker branch August 22, 2025 13:48
fentas pushed a commit that referenced this pull request Aug 22, 2025
🤖 I have created a release *beep* *boop*
---


## [4.3.0](v4.2.0...v4.3.0)
(2025-08-22)


### Features

* add kubectl-cnpg plugin support for CloudNativePG management
([#82](#82))
([f38878a](f38878a))


### Bug Fixes

* docker build for goreleaser
([#85](#85))
([0c19bae](0c19bae))
* split docker builds into separate amd64/arm64 manifests with
multi-arch support ([#84](#84))
([4dda766](4dda766))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

1 participant