@@ -3,16 +3,14 @@ release:
3
3
github :
4
4
owner : ekristen
5
5
name : aws-nuke
6
- extra_files :
7
- - glob : ./cosign.pub
8
6
builds :
9
7
- id : default
10
8
env :
11
9
- CGO_ENABLED=0
12
10
goos :
13
- - darwin
14
11
- linux
15
12
- windows
13
+ - darwin
16
14
goarch :
17
15
- amd64
18
16
- arm64
@@ -29,9 +27,11 @@ builds:
29
27
ldflags :
30
28
- -s
31
29
- -w
32
- - -X '{{ .ModulePath }}/cmd.BuildVersion={{ .Version }}'
33
- - -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}'
34
- - -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}'
30
+ - -extldflags="-static"
31
+ - -X '{{ .ModulePath }}/pkg/common.SUMMARY=v{{ .Version }}'
32
+ - -X '{{ .ModulePath }}/pkg/common.BRANCH={{ .Branch }}'
33
+ - -X '{{ .ModulePath }}/pkg/common.VERSION={{ .Tag }}'
34
+ - -X '{{ .ModulePath }}/pkg/common.COMMIT={{ .Commit }}'
35
35
archives :
36
36
- id : default
37
37
builds :
@@ -63,14 +63,14 @@ dockers:
63
63
image_templates :
64
64
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64
65
65
build_flag_templates :
66
+ - " --platform=linux/arm64"
66
67
- " --target=goreleaser"
67
68
- " --pull"
68
69
- " --label=org.opencontainers.image.created={{.Date}}"
69
70
- " --label=org.opencontainers.image.title={{.ProjectName}}"
70
71
- " --label=org.opencontainers.image.revision={{.FullCommit}}"
71
72
- " --label=org.opencontainers.image.version={{.Version}}"
72
- - " --label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke"
73
- - " --platform=linux/arm64"
73
+ - ' --label=org.opencontainers.image.source={{replace (replace (replace .GitURL "git@" "https://") ".git" "") "github.com:" "github.com/"}}'
74
74
- use : buildx
75
75
goos : linux
76
76
goarch : arm
@@ -79,14 +79,14 @@ dockers:
79
79
image_templates :
80
80
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7
81
81
build_flag_templates :
82
+ - " --platform=linux/arm/v7"
82
83
- " --target=goreleaser"
83
84
- " --pull"
84
85
- " --label=org.opencontainers.image.created={{.Date}}"
85
86
- " --label=org.opencontainers.image.title={{.ProjectName}}"
86
87
- " --label=org.opencontainers.image.revision={{.FullCommit}}"
87
88
- " --label=org.opencontainers.image.version={{.Version}}"
88
- - " --label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke"
89
- - " --platform=linux/arm/v7"
89
+ - ' --label=org.opencontainers.image.source={{replace (replace (replace .GitURL "git@" "https://") ".git" "") "github.com:" "github.com/"}}'
90
90
docker_manifests :
91
91
- use : docker
92
92
name_template : ghcr.io/ekristen/aws-nuke:v{{ .Version }}
@@ -95,14 +95,19 @@ docker_manifests:
95
95
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64
96
96
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7
97
97
signs :
98
- - cmd : cosign
99
- stdin : " {{ .Env.COSIGN_PASSWORD }}"
100
- args :
101
- ["sign-blob", "--yes", "--key=cosign.key", "--output=${signature}", "${artifact}"]
98
+ - ids :
99
+ - default
100
+ cmd : cosign
101
+ signature : " ${artifact}.sig"
102
+ certificate : " ${artifact}.pem"
103
+ args : ["sign-blob", "--yes", "--oidc-provider=github", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"]
102
104
artifacts : all
103
105
docker_signs :
104
- - artifacts : all
105
- stdin : " {{ .Env.COSIGN_PASSWORD }}"
106
+ - ids :
107
+ - default
108
+ artifacts : all
109
+ cmd : cosign
110
+ args : ["sign", "--yes", "--oidc-provider=github", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"]
106
111
checksum :
107
112
name_template : " checksums.txt"
108
113
snapshot :
0 commit comments