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, 11:45 UTC
ci: fix the name template of singing certificate and sboms (#5046)
Mohammed Al Sahaf committed
Sep 17, 2022 at 17:54 UTC
b4643994d521671a130e8b1e33ad3747af3618f5
1 file changed
+3
-4
.goreleaser.yml
+3
-4
@@ -68,14 +68,13 @@ builds:
68
signs:
69
- cmd: cosign
70
signature: "${artifact}.sig"
71
- certificate: '{{ trimsuffix .Env.artifact ".tar.gz" }}.pem'
71
+ certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
72
args: ["sign-blob", "--output-signature=${signature}", "--output-certificate", "${certificate}", "${artifact}"]
73
artifacts: all
74
sboms:
75
- artifacts: binary
76
- # defaults to
77
- # documents:
78
- # - "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.sbom"
76
+ documents:
77
+ - '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{if .Arm}}v{{ .Arm }}{{end}}.sbom'
78
cmd: syft
79
args: ["$artifact", "--file", "${document}", "--output", "cyclonedx-json"]
80
archives: