-
Notifications
You must be signed in to change notification settings - Fork 17
/
.goreleaser.yaml
101 lines (101 loc) · 2.62 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
project_name: elemental-operator
builds:
- main: ./cmd/operator
binary: elemental-operator
id: elemental-operator
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X github.com/rancher/elemental-operator/pkg/version.Version={{.Tag}}
- -X github.com/rancher/elemental-operator/pkg/version.Commit={{.Commit}}
- -X github.com/rancher/elemental-operator/pkg/version.CommitDate={{.CommitDate}}
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
- main: ./cmd/register
binary: elemental-register
id: elemental-register
env:
- CGO_ENABLED=1
ldflags:
- -w -s
- -X github.com/rancher/elemental-operator/pkg/version.Version={{.Tag}}
- -X github.com/rancher/elemental-operator/pkg/version.Commit={{.Commit}}
- -X github.com/rancher/elemental-operator/pkg/version.CommitDate={{.CommitDate}}
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
overrides: # Disable CGO on arm platforms, means that we don't support emulated TPM under arm
- goarch: arm
goos: linux
goarm: 6
env:
- CGO_ENABLED=0
- goarch: arm
goos: linux
goarm: 7
env:
- CGO_ENABLED=0
- goarch: arm64
goos: linux
env:
- CGO_ENABLED=0
- main: ./cmd/support
binary: elemental-support
id: elemental-support
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X github.com/rancher/elemental-operator/pkg/version.Version={{.Tag}}
- -X github.com/rancher/elemental-operator/pkg/version.Commit={{.Commit}}
- -X github.com/rancher/elemental-operator/pkg/version.CommitDate={{.CommitDate}}
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
archives:
- format: binary # This disables creating an archive and leaves the binaries only in the release
checksum:
name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
sboms:
- artifacts: binary
documents:
- "${artifact}.sbom"
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args: ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"]
artifacts: all
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^Merge pull request'