BUILD: Migrate GoReleaser Docker config to dockers_v2#4095
Merged
tlimoncelli merged 2 commits intoStackExchange:mainfrom Feb 22, 2026
Merged
BUILD: Migrate GoReleaser Docker config to dockers_v2#4095tlimoncelli merged 2 commits intoStackExchange:mainfrom
tlimoncelli merged 2 commits intoStackExchange:mainfrom
Conversation
…sts` to `dockers_v2` - Consolidates two separate per-arch docker entries and four manifest entries into a single `dockers_v2` block. - Updates Dockerfile to use `TARGETPLATFORM` for multi-arch builds.
- `GO111MODULE=on` has been the default since Go 1.16 and is no longer needed as an explicit environment variable.
tlimoncelli
approved these changes
Feb 22, 2026
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.
GoReleaser has deprecated
dockersanddocker_manifestsin favor ofdockers_v2. The legacy configuration will eventually be removed. This PR migrates to the new format before it becomes a breaking change.See: https://goreleaser.com/deprecations#dockers
dockersanddocker_manifeststodockers_v2GO111MODULE=on(default since Go 1.16)goreleaser build --snapshot --clean • skipping validate... • cleaning distribution directory • loading environment variables • getting and validating git state • git state commit=2738bff94d0096ec8d84866ff6ef439b6da05cbf branch=main current_tag=v4.34.0 previous_tag=v4.33.1 dirty=true • pipe skipped or partially skipped reason=disabled during snapshot mode • parsing tag • setting defaults - • dockers and docker_manifests are being phased out and will eventually be replaced by dockers_v2, check https://goreleaser.com/deprecations#dockers for more info - • dockers and docker_manifests are being phased out and will eventually be replaced by dockers_v2, check https://goreleaser.com/deprecations#dockers for more info • snapshotting • building snapshot... version=4.34.1-next • running before hooks • running hook=go fmt ./... • running hook=go mod tidy • running hook=go generate ./... • ensuring distribution directory • setting up metadata • writing release metadata • loading go mod information • build prerequisites • building binaries • building binary=dist/build_linux_amd64_v1/dnscontrol • building binary=dist/build_darwin_amd64_v1/dnscontrol • building binary=dist/build_freebsd_amd64_v1/dnscontrol • building binary=dist/build_linux_arm64_v8.0/dnscontrol • building binary=dist/build_freebsd_arm64_v8.0/dnscontrol • building binary=dist/build_windows_amd64_v1/dnscontrol.exe • building binary=dist/build_windows_arm64_v8.0/dnscontrol.exe • building binary=dist/build_darwin_arm64_v8.0/dnscontrol • universal binaries • creating from 2 binaries id=build binary=dist/build_darwin_all/dnscontrol • sign & notarize macOS binaries • pipe skipped or partially skipped reason=disabled • writing artifacts metadata • build succeeded after 6s • thanks for using GoReleaser!