-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yaml
75 lines (75 loc) · 1.87 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
project_name: openlane
builds:
- env:
- GO111MODULE=on
- CGO_ENABLED=0
binary: openlane
flags:
- -trimpath
- -tags=netgo
ldflags:
- "-X main.Version={{ .Env.VERSION }}"
- "-X main.Commit={{ .Env.COMMIT }}"
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
- "-X main.TreeState={{ .Env.TREE_STATE }}"
- "-X github.com/theopenlane/core/internal/constants.CLIVersion={{ .Env.VERSION }}"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
overrides:
- goos: darwin
goarch: arm64
env:
- CGO_ENABLED=1
- goos: darwin
goarch: amd64
goamd64: v1
env:
- CGO_ENABLED=1
main: ./cmd/cli
archives:
- format: tar.gz # we can use binary, but it seems there's an issue where goreleaser skips the sboms
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
brews:
- homepage: 'https://github.com/theopenlane/core'
description: 'openlane is the client CLI for interacting with the openlane server'
directory: Formula
license: 'Apache-2.0'
commit_author:
name: theopenlane-bender
email: [email protected]
repository:
owner: theopenlane
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
test: |
system "#{bin}/openlane --help"
source:
enabled: true
changelog:
sort: asc
use: github
sboms:
- artifacts: archive
release:
prerelease: auto
github:
owner: theopenlane
name: core
# This section defines how and which artifacts we want to sign for the release.
signs:
- cmd: cosign
args:
- "sign-blob"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes" # needed on cosign >= 2.0.0
artifacts: archive
output: true