1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-07-30 10:03:04 +03:00

Add SBOMs to release (#274)

This commit is contained in:
Luca Comellini
2022-06-29 08:59:44 -07:00
committed by GitHub
parent dfe28dbc85
commit c96648c0b4
2 changed files with 10 additions and 0 deletions

View File

@ -114,6 +114,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
- name: Download Syft
uses: anchore/sbom-action/download-syft@v0.11.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:

View File

@ -2,6 +2,7 @@ before:
hooks:
- go mod tidy
- go mod verify
builds:
- env:
- CGO_ENABLED=0
@ -32,14 +33,21 @@ builds:
- all=-trimpath={{.Env.GOPATH}}
asmflags:
- all=-trimpath={{.Env.GOPATH}}
sboms:
- artifacts: archive
archives:
- format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'sha256sums.txt'
changelog:
skip: true
brews:
- tap:
owner: nginxinc