2021-10-25 21:56:48 +03:00
|
|
|
project_name: scorecard
|
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
|
|
|
- CGO_ENABLED=1
|
2021-02-17 23:21:27 +03:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
|
|
|
builds:
|
2021-10-25 21:56:48 +03:00
|
|
|
|
|
|
|
- id: linux
|
|
|
|
binary: scorecard-linux-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- 386
|
|
|
|
- arm
|
|
|
|
ldflags:
|
|
|
|
- -s -w {{.Env.VERSION_LDFLAGS}}
|
|
|
|
|
|
|
|
- id: darwin
|
|
|
|
binary: scorecard-darwin-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
ldflags:
|
|
|
|
- -s -w {{.Env.VERSION_LDFLAGS}}
|
|
|
|
|
|
|
|
- id: windows
|
|
|
|
binary: scorecard-windows-{{ .Arch }}
|
|
|
|
no_unique_dist_dir: true
|
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- 386
|
|
|
|
- arm64
|
|
|
|
- arm
|
|
|
|
ldflags:
|
|
|
|
- -buildmode=exe
|
|
|
|
- -s -w {{.Env.VERSION_LDFLAGS}}
|
2021-02-14 05:30:11 +03:00
|
|
|
|
2021-02-17 23:21:27 +03:00
|
|
|
checksum:
|
2021-02-14 05:30:11 +03:00
|
|
|
# Algorithm to be used.
|
|
|
|
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
|
|
|
|
# Default is sha256.
|
2021-10-25 21:56:48 +03:00
|
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
2021-02-14 05:30:11 +03:00
|
|
|
algorithm: sha512
|
2021-10-25 21:56:48 +03:00
|
|
|
|
|
|
|
snapshot:
|
|
|
|
name_template: SNAPSHOT-{{ .ShortCommit }}
|
2021-02-14 05:30:11 +03:00
|
|
|
changelog:
|
2021-10-25 21:56:48 +03:00
|
|
|
use: github
|
2021-02-14 05:30:11 +03:00
|
|
|
# Set it to true if you wish to skip the changelog generation.
|
|
|
|
# This may result in an empty release notes on GitHub/GitLab/Gitea.
|
2021-08-12 02:27:15 +03:00
|
|
|
skip: false
|
2021-02-17 23:21:27 +03:00
|
|
|
signs:
|
|
|
|
- artifacts: checksum
|
|
|
|
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
2021-10-25 21:56:48 +03:00
|
|
|
|
|
|
|
release:
|
|
|
|
footer: |
|
|
|
|
### Thanks for all contributors!
|