This repository was archived by the owner on May 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoreleaser.yml
More file actions
173 lines (164 loc) · 5.33 KB
/
goreleaser.yml
File metadata and controls
173 lines (164 loc) · 5.33 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: 2
project_name: identityvalidate
builds:
- id: build-linux
main: .
binary: identityvalidate
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/method-security/identityvalidate/main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- "386"
- arm
- amd64
- arm64
goarm:
- "7"
- id: build-macos
main: .
binary: identityvalidate
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/method-security/identityvalidate/main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
goarm:
- "7"
- id: build-windows
main: .
binary: identityvalidate
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/method-security/identityvalidate/main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
goarm:
- "7"
archives:
- id: archive
format: tar.gz
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "linux" }}Linux
{{- else}}{{- .Os }}{{ end }}-
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
- LICENSE
format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- "docker.io/methodsecurity/identityvalidate:{{ .Version }}-amd64"
- "docker.io/methodsecurity/identityvalidate:latest-amd64"
- "ghcr.io/method-security/identityvalidate:{{ .Version }}-amd64"
- "ghcr.io/method-security/identityvalidate:latest-amd64"
use: buildx
goos: linux
goarch: amd64
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=An on-rails Identity Validation tool"
- "--label=org.opencontainers.image.vendor=Method Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/method-security/identityvalidate"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://method.security"
- "--label=org.opencontainers.image.documentation=https://github.com/method-security/identityvalidate"
- "--platform=linux/amd64"
- image_templates:
- "docker.io/methodsecurity/identityvalidate:{{ .Version }}-arm64"
- "docker.io/methodsecurity/identityvalidate:latest-arm64"
- "ghcr.io/method-security/identityvalidate:{{ .Version }}-arm64"
- "ghcr.io/method-security/identityvalidate:latest-arm64"
use: buildx
goos: linux
goarch: arm64
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=An on-rails Identity Validation tool"
- "--label=org.opencontainers.image.vendor=Method Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/method-security/identityvalidate"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://method.security"
- "--label=org.opencontainers.image.documentation=https://github.com/method-security/identityvalidate"
- "--platform=linux/arm64"
docker_manifests:
- name_template: 'ghcr.io/method-security/identityvalidate:{{ .Version }}'
image_templates:
- 'ghcr.io/method-security/identityvalidate:{{ .Version }}-amd64'
- 'ghcr.io/method-security/identityvalidate:{{ .Version }}-arm64'
- name_template: 'ghcr.io/method-security/identityvalidate:latest'
image_templates:
- 'ghcr.io/method-security/identityvalidate:{{ .Version }}-amd64'
- 'ghcr.io/method-security/identityvalidate:{{ .Version }}-arm64'
- name_template: 'methodsecurity/identityvalidate:{{ .Version }}'
image_templates:
- 'methodsecurity/identityvalidate:{{ .Version }}-amd64'
- 'methodsecurity/identityvalidate:{{ .Version }}-arm64'
- name_template: 'methodsecurity/identityvalidate:latest'
image_templates:
- 'methodsecurity/identityvalidate:{{ .Version }}-amd64'
- 'methodsecurity/identityvalidate:{{ .Version }}-arm64'
source:
enabled: true
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
sboms:
- artifacts: archive
- id: source
artifacts: source
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
signature: "${artifact}.sig"
certificate: '${artifact}.pem'
args:
- sign-blob
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
output: true
docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: manifests
output: true
args:
- "sign"
- "${artifact}"
- "--yes"