forked from open-component-model/ocm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
81 lines (81 loc) · 1.88 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
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
binary: ocm
main: ./cmds/ocm/main.go
ldflags:
- -s -w -X github.com/open-component-model/ocm/pkg/version.gitVersion={{.Version}} -X github.com/open-component-model/ocm/pkg/version.gitCommit={{.Commit}} -X github.com/open-component-model/ocm/pkg/version.buildDate={{.CommitDate}}
env:
- CGO_ENABLED=0
id: linux
goos:
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- 7
- <<: *build_defaults
id: darwin
goos:
- darwin
goarch:
- amd64
- arm64
- <<: *build_defaults
id: windows
goos:
- windows
archives:
- name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
id: nix
builds: [linux, darwin]
format: tar.gz
files:
- none*
- name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
id: windows
builds: [windows]
format: zip
files:
- none*
source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Version }}-source_code'
sboms:
- id: source
artifacts: source
documents:
- "{{ .ProjectName }}-{{ .Version }}-sbom.spdx.json"
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: checksum
output: true
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: ocm
tap:
owner: open-component-model
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
homepage: "https://ocm.software/"
description: "The OCM CLI makes it easy to create component versions and embed them in build processes."
test: |
system "#{bin}/ocm --version"