Skip to content

Commit 0a40aa9

Browse files
committed
Rename release config
1 parent 01493e9 commit 0a40aa9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.slsa-goreleaser.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Version for this file.
2+
version: 1
3+
4+
# The OS to compile for. `GOOS` env variable will be set to this value.
5+
goos: linux
6+
7+
# The architecture to compile for. `GOARCH` env variable will be set to this value.
8+
goarch: amd64
9+
10+
# (Optional) Entrypoint to compile.
11+
# main: ./path/to/main.go
12+
13+
# (Optional) Working directory. (default: root of the project)
14+
# dir: ./relative/path/to/dir
15+
16+
# Binary output name.
17+
# {{ .Os }} will be replaced by goos field in the config file.
18+
# {{ .Arch }} will be replaced by goarch field in the config file.
19+
binary: kacti-{{ .Os }}-{{ .Arch }}
20+
21+
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
22+
ldflags:
23+
- "-X main.Version={{ .Env.VERSION }}"
24+
- "-X main.Commit={{ .Env.COMMIT }}"
25+
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
26+
- "-X main.TreeState={{ .Env.TREE_STATE }}"

0 commit comments

Comments
 (0)