Skip to content

Commit 6dc2703

Browse files
authored
chore: migrate goreleaser docker manifest to v2 (#5236)
1 parent 72f9b02 commit 6dc2703

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Run GoReleaser
3333
uses: goreleaser/goreleaser-action@v6
3434
with:
35-
version: latest
35+
version: "~> v2"
3636
args: release
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ changelog:
4444
- '^docs:'
4545
- '^test:'
4646

47-
dockers:
48-
- image_templates:
49-
- "scaleway/cli:latest"
50-
- "scaleway/cli:{{ .Tag }}"
51-
- "scaleway/cli:{{ .Major }}"
52-
- "scaleway/cli:{{ .Major }}.{{ .Minor }}"
47+
dockers_v2:
48+
- images:
49+
- "scaleway/cli"
50+
tags:
51+
- "latest"
52+
- "{{ .Tag }}"
53+
- "{{ .Major }}"
54+
- "{{ .Major }}.{{ .Minor }}"
5355
extra_files:
5456
- go.mod
5557
- go.sum
@@ -59,8 +61,12 @@ dockers:
5961
- commands
6062
- internal
6163
- .git
62-
build_flag_templates:
63-
- "--build-arg=VERSION={{ .Version }}"
64+
platforms:
65+
- linux/amd64
66+
- linux/arm64
67+
sbom: true
68+
build_args:
69+
VERSION: "{{ .Version }}"
6470

6571
release:
6672
github:

0 commit comments

Comments
 (0)