-
Notifications
You must be signed in to change notification settings - Fork 21
/
.slsa-goreleaser-linux-amd64.yml
36 lines (28 loc) · 1.12 KB
/
.slsa-goreleaser-linux-amd64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Version for this file.
version: 1
# (Optional) List of env variables used during compilation.
env:
- GO111MODULE=on
- CGO_ENABLED=0
# (Optional) Flags for the compiler.
flags:
- -trimpath
- -tags=netgo
# The OS to compile for. `GOOS` env variable will be set to this value.
goos: linux
# The architecture to compile for. `GOARCH` env variable will be set to this value.
goarch: amd64
# (Optional) Entrypoint to compile.
main: ./cmd/kubectl-sigstore
# (Optional) Working directory. (default: root of the project)
# dir: ./relative/path/to/dir
# Binary output name.
# {{ .Os }} will be replaced by goos field in the config file.
# {{ .Arch }} will be replaced by goarch field in the config file.
binary: kubectl-sigstore-linux-{{ .Arch }}
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X '{{ .Env.VERSION_PKG }}.GitVersion={{ .Env.VERSION }}'"
- "-X '{{ .Env.VERSION_PKG }}.gitCommit={{ .Env.COMMIT }}'"
- "-X '{{ .Env.VERSION_PKG }}.buildDate={{ .Env.COMMIT_DATE }}'"
- "-X '{{ .Env.VERSION_PKG }}.gitTreeState={{ .Env.TREE_STATE }}'"