Skip to content

Commit d30366d

Browse files
committed
slsa releaser
1 parent 044ba7b commit d30366d

3 files changed

Lines changed: 36 additions & 66 deletions

File tree

.github/workflow/goreleaser.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.goreleaser.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.slsa-goreleaser.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Version for this file.
2+
version: 1
3+
4+
# (Optional) List of env variables used during compilation.
5+
env:
6+
- GO111MODULE=on
7+
- CGO_ENABLED=0
8+
9+
# (Optional) Flags for the compiler.
10+
flags:
11+
- -trimpath
12+
- -tags=netgo
13+
14+
# The OS to compile for. `GOOS` env variable will be set to this value.
15+
goos: linux
16+
17+
# The architecture to compile for. `GOARCH` env variable will be set to this value.
18+
goarch: amd64
19+
20+
# (Optional) Entrypoint to compile.
21+
# main: ./path/to/main.go
22+
23+
# (Optional) Working directory. (default: root of the project)
24+
# dir: ./relative/path/to/dir
25+
26+
# Binary output name.
27+
# {{ .Os }} will be replaced by goos field in the config file.
28+
# {{ .Arch }} will be replaced by goarch field in the config file.
29+
binary: binary-{{ .Os }}-{{ .Arch }}
30+
31+
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
32+
# ldflags:
33+
# - "-X main.Version={{ .Env.VERSION }}"
34+
# - "-X main.Commit={{ .Env.COMMIT }}"
35+
# - "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
36+
# - "-X main.TreeState={{ .Env.TREE_STATE }}"

0 commit comments

Comments
 (0)