Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 08:00 UTC
ci: Fix goreleaser deprecation (#5270)
Francis Lavoie committed
Dec 28, 2022 at 13:11 UTC
b40548ff614a2b30773d6f609fd75e526b409994
1 file changed
+20
-4
.goreleaser.yml
+20
-4
@@ -66,24 +66,41 @@ builds:
66
- -mod=readonly
67
ldflags:
68
- -s -w
69
+
70
signs:
71
- cmd: cosign
72
signature: "${artifact}.sig"
73
certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
74
args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
75
artifacts: all
76
+
77
sboms:
78
- artifacts: binary
79
documents:
78
- - '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}v{{ .Arm }}{{end}}.sbom'
80
+ - >-
81
+ {{ .ProjectName }}_
82
+ {{- .Version }}_
83
+ {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
84
+ {{- .Arch }}
85
+ {{- with .Arm }}v{{ . }}{{ end }}
86
+ {{- with .Mips }}_{{ . }}{{ end }}
87
+ {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}.sbom
88
cmd: syft
89
args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
90
+
91
archives:
92
- format_overrides:
93
- goos: windows
94
format: zip
85
- replacements:
86
- darwin: mac
95
+ name_template: >-
96
+ {{ .ProjectName }}_
97
+ {{- .Version }}_
98
+ {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
99
+ {{- .Arch }}
100
+ {{- with .Arm }}v{{ . }}{{ end }}
101
+ {{- with .Mips }}_{{ . }}{{ end }}
102
+ {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
103
+
104
checksum:
105
algorithm: sha512
106
@@ -128,7 +145,6 @@ nfpms:
145
preremove: ./caddy-dist/scripts/preremove.sh
146
postremove: ./caddy-dist/scripts/postremove.sh
147
131
-
148
release:
149
github:
150
owner: caddyserver