aboutsummaryrefslogtreecommitdiffhomepage
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2022-09-17 17:54:50 +0300
committerGitHub <[email protected]>2022-09-17 08:54:50 -0600
commitb4643994d521671a130e8b1e33ad3747af3618f5 (patch)
treeeb1c5d84453bfa397d6d1906ae97fa16b2967f52 /.goreleaser.yml
parente43b6d81782ef79f22058179d8793f40cea89556 (diff)
downloadcaddy-b4643994d521671a130e8b1e33ad3747af3618f5.tar.gz
caddy-b4643994d521671a130e8b1e33ad3747af3618f5.zip
ci: fix the name template of singing certificate and sboms (#5046)
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 9369bc48f..bfd3fd43a 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -68,14 +68,13 @@ builds:
signs:
- cmd: cosign
signature: "${artifact}.sig"
- certificate: '{{ trimsuffix .Env.artifact ".tar.gz" }}.pem'
+ certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
artifacts: all
sboms:
- artifacts: binary
- # defaults to
- # documents:
- # - "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.sbom"
+ documents:
+ - '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}v{{ .Arm }}{{end}}.sbom'
cmd: syft
args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
archives: