aboutsummaryrefslogtreecommitdiffhomepage
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2022-09-03 03:37:10 +0300
committerGitHub <[email protected]>2022-09-03 03:37:10 +0300
commitd6b3c7d2623d9a809abda367fb93dc48b0ba7d7c (patch)
treecfd539965a6780920d385b9567067252b494988e /.goreleaser.yml
parent66476d8c8f6010f19fb65bac7758c6fd2824e231 (diff)
downloadcaddy-d6b3c7d2623d9a809abda367fb93dc48b0ba7d7c.tar.gz
caddy-d6b3c7d2623d9a809abda367fb93dc48b0ba7d7c.zip
ci: generate SBOM and sign artifacts using cosign (#4910)
* ci: sign artifacts using cosign * include SBOM
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index f0e261590..d4f786de7 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -62,9 +62,18 @@ builds:
goarm: "5"
flags:
- -trimpath
+ - -mod=readonly
ldflags:
- -s -w
-
+signs:
+ - cmd: cosign
+ signature: "${artifact}.sig"
+ args: ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output=${signature}", "${artifact}"]
+ artifacts: all
+sboms:
+ - artifacts: binary
+ cmd: syft
+ args: ["$artifact", "--file", "$sbom", "--output", "cyclonedx-json"]
archives:
- format_overrides:
- goos: windows