File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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 }}"
You can’t perform that action at this time.
0 commit comments