summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2022-09-17 17:54:50 +0300
committerGitHub <noreply@github.com>2022-09-17 08:54:50 -0600
commitb4643994d521671a130e8b1e33ad3747af3618f5 (patch)
treeeb1c5d84453bfa397d6d1906ae97fa16b2967f52
parente43b6d81782ef79f22058179d8793f40cea89556 (diff)
ci: fix the name template of singing certificate and sboms (#5046)
-rw-r--r--.goreleaser.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 9369bc4..bfd3fd4 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: