Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump up GoReleaser to v2.4.8 #2323

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading