Skip to content

Commit

Permalink
ci: bump up GoReleaser to v2.4.8 (#2323)
Browse files Browse the repository at this point in the history
* ci: bump up GoReleaser to v2.4.8

* chore: add spaces

* chore: fix deprecated fields

* fix: bump up goreleaser for e2e tests
  • Loading branch information
afdesk authored Nov 25, 2024
1 parent d4da6e5 commit 65f5425
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ jobs:
- name: Release snapshot
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
version: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
- name: Install kind and create cluster
run: >
curl -Lo ./kind https://kind.sigs.k8s.io/dl/${{ env.KIND_VERSION
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- name: Release snapshot
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
version: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ jobs:
- name: Release
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release --rm-dist
version: v2.4.8
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1
Expand Down
17 changes: 11 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
version: 2

project_name: trivy_operator
release:
draft: false
prerelease: auto
Expand All @@ -22,20 +25,22 @@ builds:
goarm:
- "7"
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else }}{{ .Arch }}{{ end }}
builds:
- trivy-operator
replacements:
amd64: x86_64
arm: ARM
arm64: ARM64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .FullCommit }}"
version_template: "{{ .FullCommit }}"
changelog:
filters:
exclude:
Expand Down
6 changes: 4 additions & 2 deletions goreleaser-e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
version: 2

project_name: build_e2e
release:
draft: false
prerelease: auto
Expand Down Expand Up @@ -26,7 +28,7 @@ archives:
checksum:
name_template: checksums.txt
snapshot:
name_template: "{{ .FullCommit }}"
version_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 65f5425

Please sign in to comment.