summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2022-12-28 13:11:39 -0500
committerGitHub <[email protected]>2022-12-28 13:11:39 -0500
commitb40548ff614a2b30773d6f609fd75e526b409994 (patch)
tree89152048f36429ef2da3e2be64389724e31ec2e4
parent4e54e48409bb3716f6b10d54a7e8fafd6be898dc (diff)
downloadcaddy-b40548ff614a2b30773d6f609fd75e526b409994.tar.gz
caddy-b40548ff614a2b30773d6f609fd75e526b409994.zip
ci: Fix goreleaser deprecation (#5270)
-rw-r--r--.goreleaser.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index dafcce09a..3f7f40db0 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -66,24 +66,41 @@ builds:
- -mod=readonly
ldflags:
- -s -w
+
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
artifacts: all
+
sboms:
- artifacts: binary
documents:
- - '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}v{{ .Arm }}{{end}}.sbom'
+ - >-
+ {{ .ProjectName }}_
+ {{- .Version }}_
+ {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
+ {{- .Arch }}
+ {{- with .Arm }}v{{ . }}{{ end }}
+ {{- with .Mips }}_{{ . }}{{ end }}
+ {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}.sbom
cmd: syft
args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
+
archives:
- format_overrides:
- goos: windows
format: zip
- replacements:
- darwin: mac
+ name_template: >-
+ {{ .ProjectName }}_
+ {{- .Version }}_
+ {{- if eq .Os "darwin" }}mac{{ else }}{{ .Os }}{{ end }}_
+ {{- .Arch }}
+ {{- with .Arm }}v{{ . }}{{ end }}
+ {{- with .Mips }}_{{ . }}{{ end }}
+ {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
+
checksum:
algorithm: sha512
@@ -128,7 +145,6 @@ nfpms:
preremove: ./caddy-dist/scripts/preremove.sh
postremove: ./caddy-dist/scripts/postremove.sh
-
release:
github:
owner: caddyserver