forked from ekristen/aws-nuke
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
113 lines (113 loc) · 2.71 KB
/
Copy path.goreleaser.yml
File metadata and controls
113 lines (113 loc) · 2.71 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
version: 2
dist: releases
release:
github:
owner: ekristen
name: aws-nuke
builds:
- id: default
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "7"
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags="-static"
- -X '{{ .ModulePath }}/pkg/common.SUMMARY=v{{ .Version }}'
- -X '{{ .ModulePath }}/pkg/common.BRANCH={{ .Branch }}'
- -X '{{ .ModulePath }}/pkg/common.VERSION={{ .Tag }}'
- -X '{{ .ModulePath }}/pkg/common.COMMIT={{ .Commit }}'
hooks:
post:
- cmd: |
{{- if eq .Os "darwin" -}}
quill sign-and-notarize "{{ .Path }}" --dry-run={{ .IsSnapshot }} --ad-hoc={{ .IsSnapshot }} -vv
{{- else -}}
true
{{- end -}}
env:
- QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log
archives:
- id: default
ids:
- default
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
format_overrides:
- goos: windows
formats:
- zip
dockers_v2:
- dockerfile: Dockerfile
images:
- ghcr.io/ekristen/aws-nuke
tags:
- v{{ .Version }}
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v7
labels:
"org.opencontainers.image.created": "{{.Date}}"
"org.opencontainers.image.title": "{{.ProjectName}}"
"org.opencontainers.image.revision": "{{.FullCommit}}"
"org.opencontainers.image.version": "{{.Version}}"
"org.opencontainers.image.source": "https://github.com/ekristen/aws-nuke"
flags:
- "--target=goreleaser"
- "--pull"
signs:
- ids:
- default
cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args:
[
"sign-blob",
"--yes",
"--oidc-provider=github",
"--oidc-issuer=https://token.actions.githubusercontent.com",
"--output-certificate=${certificate}",
"--output-signature=${signature}",
"${artifact}",
]
artifacts: all
docker_signs:
- ids:
- default
artifacts: all
cmd: cosign
args:
[
"sign",
"--yes",
"--oidc-provider=github",
"--oidc-issuer=https://token.actions.githubusercontent.com",
"--output-certificate=${certificate}",
"--output-signature=${signature}",
"${artifact}",
]
checksum:
name_template: "checksums.txt"
snapshot:
version_template: '{{ trimprefix .Summary "v" }}'
changelog:
disable: true