Skip to content

BUILD: Migrate GoReleaser Docker config to dockers_v2#4095

Merged
tlimoncelli merged 2 commits intoStackExchange:mainfrom
cafferata:build/goreleaser-dockers_v2
Feb 22, 2026
Merged

BUILD: Migrate GoReleaser Docker config to dockers_v2#4095
tlimoncelli merged 2 commits intoStackExchange:mainfrom
cafferata:build/goreleaser-dockers_v2

Conversation

@cafferata
Copy link
Copy Markdown
Collaborator

GoReleaser has deprecated dockers and docker_manifests in favor of dockers_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

  • Migrate dockers and docker_manifests to dockers_v2
  • Remove redundant GO111MODULE=on (default since Go 1.16)
goreleaser build --snapshot --clean
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!

…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.
@cafferata cafferata added the build Pull requests that updates CI code label Feb 22, 2026
@tlimoncelli tlimoncelli merged commit 00673f5 into StackExchange:main Feb 22, 2026
10 checks passed
@cafferata cafferata deleted the build/goreleaser-dockers_v2 branch February 22, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that updates CI code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants