-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
84 lines (75 loc) · 2.06 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
- which syft
env:
# to allow github to override it if I need to
- GITHUB_REPOSITORY_OWNER={{ if index .Env "GITHUB_REPOSITORY_OWNER" }}{{ .Env.GITHUB_REPOSITORY_OWNER }}{{ else }}georgettica{{ end }}
builds:
- env:
- CGO_ENABLED=0
- GOFLAGS=-mod=readonly -trimpath
ldflags:
- "-extldflags=-znow"
- "-extldflags=-zrelro"
- "-s"
- "-w"
goos:
- darwin
- linux
# dropping support for windows as it is possibly breaking my codebase https://github.com/goreleaser/goreleaser-action/issues/361
#- windows
#dockers:
# - image_templates:
# - ghcr.io/{{.Env.GITHUB_REPOSITORY_OWNER}}/{{ .ProjectName }}:latest
# - ghcr.io/{{.Env.GITHUB_REPOSITORY_OWNER}}/{{ .ProjectName }}:{{ .Version }}
# ids:
# - obnpctl
# dockerfile: ./hack/Dockerfile.goreleaser
archives:
- replacements:
386: i386
amd64: x86_64
darwin: Darwin
linux: Linux
windows: Windows
checksum:
name_template: 'checksums.txt'
sboms:
- artifacts: archive
- id: source
artifacts: source
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
env:
- COSIGN_EXPERIMENTAL=1
args:
- sign-blob
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "${artifact}"
artifacts: all
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Documentation'
regexp: "^.*docs[(\\w)]*:+.*$"
order: 2
- title: Others
order: 999