Skip to content

Commit

Permalink
Updated goreleaser to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
droot committed Jul 8, 2024
1 parent 1d13188 commit 5c13398
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --skip-validate -f release/tag/goreleaser.yaml
version: "~> v2"
args: release --skip=validate -f release/tag/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SLSA subjects for provenance
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ release-dry-run:
-w /go/src/github.com/GoogleContainerTools/kpt \
$(GORELEASER_IMAGE) \
-f "$(GORELEASER_CONFIG)" \
--skip-validate --skip-publish
--skip=validate,publish

release:
@if [ ! -f ".release-env" ]; then \
Expand All @@ -187,7 +187,7 @@ release:
-w /go/src/github.com/GoogleContainerTools/kpt \
$(GORELEASER_IMAGE) \
-f "$(GORELEASER_CONFIG)" release \
--skip-validate
--skip=validate

release-ci:
@if [ ! -f ".release-env" ]; then \
Expand All @@ -204,7 +204,7 @@ release-ci:
-w /go/src/github.com/GoogleContainerTools/kpt \
$(GORELEASER_IMAGE) \
-f "$(GORELEASER_CONFIG)" release \
--skip-validate
--skip=validate

.PHONY: vulncheck
vulncheck: build
Expand Down
1 change: 1 addition & 0 deletions release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# matrix of GOOS and GOARCH combinations, but instead, we'd need to define separate
# steps for each targetted OS and ARCH. This is because we need to specify the
# platform specific C std library (libc) and cross-compiler to be used.
version: 2
env:
- CGO_ENABLED=0
- GO111MODULE=on
Expand Down

0 comments on commit 5c13398

Please sign in to comment.