-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
111 lines (110 loc) · 2.6 KB
/
Copy path.goreleaser.yaml
File metadata and controls
111 lines (110 loc) · 2.6 KB
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
version: 2
project_name: openlane-agent
builds:
# ------------------------
# Linux amd64
# ------------------------
- id: linux-amd64
main: .
binary: openlane-agent
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-s -w"
- "-X github.com/theopenlane/agent/internal/constants.AgentVersion={{ .Env.VERSION }}"
# ------------------------
# Darwin amd64
# ------------------------
- id: darwin-amd64
main: .
binary: openlane-agent
goos:
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-X github.com/theopenlane/agent/internal/constants.AgentVersion={{ .Env.VERSION }}"
# ------------------------
# Darwin arm64
# ------------------------
- id: darwin-arm64
main: .
binary: openlane-agent
goos:
- darwin
goarch:
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-X github.com/theopenlane/agent/internal/constants.AgentVersion={{ .Env.VERSION }}"
# ------------------------
# Linux arm64
# ------------------------
- id: linux-arm64
main: .
binary: openlane-agent
goos:
- linux
goarch:
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
- -tags=netgo
ldflags:
- "-s -w"
- "-X github.com/theopenlane/agent/internal/constants.AgentVersion={{ .Env.VERSION }}"
archives:
- formats: ['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
formats: ['zip']
source:
enabled: true
changelog:
sort: asc
use: github
sboms:
- artifacts: archive
release:
prerelease: auto
github:
owner: theopenlane
name: agent
# This section defines how and which artifacts we want to sign for the release.
signs:
- cmd: cosign
args:
- "sign-blob"
- "--bundle=${signature}"
- "${artifact}"
- "--yes" # needed on cosign >= 2.0.0
artifacts: archive
output: true
signature: "${artifact}.sigstore.json"
homebrew_casks:
- homepage: 'https://github.com/theopenlane/agent'
description: 'openlane-agent is a remote processing agent for executing Openlane continuous compliance tasks'
license: 'Apache-2.0'
commit_author:
name: theopenlane-bender
email: bender@theopenlane.io
repository:
owner: theopenlane
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"