Skip to content

Commit

Permalink
Revert "ci: bump up GoReleaser to v2.4.8 (#2323)"
Browse files Browse the repository at this point in the history
This reverts commit 65f5425.
  • Loading branch information
afdesk authored Nov 26, 2024
1 parent 65f5425 commit cefd756
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 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: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
- 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: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
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: v2.4.8
args: release --clean
version: v1.7.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1
Expand Down
17 changes: 6 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
version: 2

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

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

0 comments on commit cefd756

Please sign in to comment.