Commit 00673f5
authored
BUILD: Migrate GoReleaser Docker config to dockers_v2 (#4095)
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)
```shell
goreleaser build --snapshot --clean
```
```diff
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!
```1 parent 2738bff commit 00673f5
2 files changed
+20
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
151 | 116 | | |
152 | 117 | | |
153 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments