Skip to content

Commit

Permalink
Build windows and freebsd and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith5 committed Jan 27, 2022
1 parent 10535c7 commit 0e8e3c2
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ builds:
goos:
- linux
- darwin
- freebsd
- windows
goarch:
- amd64
- arm64
Expand All @@ -15,6 +17,30 @@ builds:
- "-X github.com/nsmith5/rekor-sidekick/cli.commit={{.FullCommit}}"
- "-X github.com/nsmith5/rekor-sidekick/cli.date={{.CommitDate}}"

nfpms:
- id: default
package_name: rekor-sidekick
vendor: Nathan Smith
homepage: https://www.nfsmith.ca
maintainer: Nathan Smith <[email protected]>
description: Alerting and monitoring of the Rekor signature transparency log
formats:
- apk
- deb
- rpm
contents:
- src: etc/config.yaml
dst: /etc/rekor-sidekick/config.yaml
type: config|noreplace
- dst: /etc/rekor-sidekick
type: dir
file_info:
mode: 0755

archives:
- id: binary
format: binary

gomod:
proxy: true

Expand All @@ -25,19 +51,21 @@ source:
enabled: true

sboms:
- artifacts: archive
- id: source # Two different sbom configurations need two different IDs
artifacts: source
- id: binaries
artifacts: binary
- id: packages
artifacts: package

signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
signature: '${artifact}.sig'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: checksum
artifacts: binary
output: true

0 comments on commit 0e8e3c2

Please sign in to comment.