Skip to content

Commit b34061f

Browse files
committed
update goreleaser, add buildx to runner
1 parent 7d85f4c commit b34061f

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- v*
1515
env:
1616
GOVER: 1.24.12
17-
GORELEASER_VER: v1.19.2
17+
GORELEASER_VER: v2.13.3
1818

1919
jobs:
2020
test:
@@ -40,6 +40,7 @@ jobs:
4040
- uses: actions/checkout@v6
4141
with:
4242
fetch-depth: 0
43+
4344
- uses: actions/setup-go@v6
4445
with:
4546
go-version: ${{ env.GOVER }}
@@ -51,10 +52,13 @@ jobs:
5152
username: ${{ github.actor }}
5253
password: ${{ secrets.GITHUB_TOKEN }}
5354

55+
- name: Set up Docker Buildx
56+
uses: docker/setup-buildx-action@v3
57+
5458
- name: Release with goreleaser
5559
uses: goreleaser/goreleaser-action@v6
5660
with:
5761
version: ${{ env.GORELEASER_VER }}
58-
args: release --rm-dist --debug
62+
args: release --clean --verbose
5963
env:
6064
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#
77
# SPDX-License-Identifier: Apache-2.0
88

9+
version: 2
910
project_name: gnmic
1011
builds:
1112
- env:
@@ -33,6 +34,8 @@ dockers:
3334
use: buildx
3435
build_flag_templates:
3536
- "--platform=linux/amd64"
37+
- "--provenance=false"
38+
- "--sbom=false"
3639
- goos: linux
3740
goarch: arm64
3841
ids:
@@ -45,6 +48,8 @@ dockers:
4548
use: buildx
4649
build_flag_templates:
4750
- "--platform=linux/arm64"
51+
- "--provenance=false"
52+
- "--sbom=false"
4853
- goos: linux
4954
goarch: amd64
5055
ids:
@@ -54,6 +59,11 @@ dockers:
5459
- 'ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}-scratch'
5560
dockerfile: goreleaser-scratch.dockerfile
5661
skip_push: false
62+
use: buildx
63+
build_flag_templates:
64+
- "--platform=linux/amd64"
65+
- "--provenance=false"
66+
- "--sbom=false"
5767
docker_manifests:
5868
- name_template: 'ghcr.io/openconfig/gnmic:{{ replace .Version "v" "" }}'
5969
image_templates:
@@ -78,11 +88,7 @@ checksum:
7888
snapshot:
7989
name_template: "{{ .Tag }}"
8090
changelog:
81-
sort: asc
82-
filters:
83-
exclude:
84-
- "^docs:"
85-
- "^test:"
91+
use: github-native
8692

8793
nfpms:
8894
- id: gnmic

0 commit comments

Comments
 (0)