This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
115 lines (107 loc) · 2.64 KB
/
.goreleaser.yml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
project_name: nais-salsa
before:
hooks:
- go mod tidy
builds:
- env: [ CGO_ENABLED=0 ]
targets:
- linux_amd64
- windows_amd64
- darwin_amd64
- darwin_arm64
id: nais
dir: .
main: ./cmd
binary: salsa
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
checksum:
name_template: 'checksums.txt'
archives:
- format: tar.gz
replacements:
darwin: macOS
files:
- cosign.pub
- dist/*.sig
format_overrides:
- goos: windows
format: zip
sboms:
- artifacts: archive
signs:
- id: sign archives
cmd: cosign
stdin: '{{ .Env.COSIGN_PASSWORD }}'
args: ["sign-blob", "--key=cosign.key", "--output=${signature}", "--yes", "${artifact}"]
signature: "${artifact}.sig"
artifacts: archive
- id: sign checksum.txt
cmd: cosign
stdin: '{{ .Env.COSIGN_PASSWORD }}'
args: ["sign-blob", "--key=cosign.key", "--output=${signature}", "--yes", "${artifact}"]
signature: "${artifact}.sig"
artifacts: checksum
changelog:
sort: asc
# use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: 'Dependency updates'
regexp: "^.*build(deps)[(\\w)]*:+.*$"
order: 30
- title: Other work
order: 999
release:
prerelease: auto
draft: true
github:
owner: nais
name: salsa
header: |
## {{.ProjectName}} ({{ .Version }})
footer: |
## Enjoy some {{.ProjectName}} verde
_Changelog_: https://github.com/nais/salsa/compare/{{ .PreviousTag }}...{{ .Tag }}
Those were the changes on {{ .Tag }}!
extra_files:
- glob: "cosign.pub"
#brews:
# - tap:
# owner: nais
# name: homebrew-tap
# token: "{{ .Env.PUSH_TOKEN }}"
# name: salsa
# homepage: "https://github.com/nais/salsa"
# description: "Command-line interface for SLSA provenance"
# license: MIT
# folder: Formula
# install: |
# bin.install "salsa"
# test: |
# assert_match version, shell_output("#{bin}/salsa version")
#
#nfpms:
# - package_name: salsa
# file_name_template: "{{ .PackageName }}_{{ .Version }}"
# vendor: NAV / nais team
# homepage: "https://github.com/nais/salsa"
# maintainer: NAV / nais team
# description: "Command-line interface for SLSA provenance"
# license: MIT
# formats:
# - deb
# version_metadata: git