We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c43ca commit c46d52bCopy full SHA for c46d52b
.github/workflows/release.yml
@@ -39,6 +39,10 @@ jobs:
39
go-version: "1.23"
40
- name: Cosign install
41
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
42
+ - name: Install UPX
43
+ run: |
44
+ sudo apt-get update
45
+ sudo apt-get install -y upx
46
- name: Run GoReleaser
47
uses: goreleaser/goreleaser-action@v6
48
with:
.goreleaser.yml
@@ -11,6 +11,9 @@ builds:
11
goarch:
12
- amd64
13
- arm64
14
+ hooks:
15
+ post:
16
+ - bash -c 'if [ "{{ .Env.GGOOS }}" != "darwin" ]; then upx -q "{{ .Path }}"; fi'
17
dockers:
18
- image_templates: ["trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64"]
19
dockerfile: Dockerfile.goreleaser
0 commit comments