-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
49 lines (46 loc) · 1.41 KB
/
.goreleaser.yml
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
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '{{ trimsuffix .Env.artifact ".txt" }}.pem'
args:
- sign-blob
- '--oidc-issuer={{if index .Env "CI"}}https://token.actions.githubusercontent.com{{else}}https://oauth2.sigstore.dev/auth{{end}}'
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: checksum
# output: true
dockers:
- image_templates:
- 'caarlos0/gorel-keyless:{{ .Tag }}'
dockerfile: Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: images
# output: true
# certificate: '{{ replace (replace .Env.artifact "/" "-") ":" "-" }}.pem'
args:
- 'sign'
- '--oidc-issuer={{if index .Env "CI"}}https://token.actions.githubusercontent.com{{else}}https://oauth2.sigstore.dev/auth{{end}}'
# - '--output-certificate=${certificate}'
- '${artifact}'