-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Konrads Klints
authored
Dec 7, 2023
1 parent
d1f9db9
commit 55145ec
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Version for this file. | ||
version: 1 | ||
|
||
# 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: ./path/to/main.go | ||
|
||
# (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: binary-{{ .Os }}-{{ .Arch }} | ||
|
||
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow. | ||
ldflags: | ||
- "-X main.Version={{ .Env.VERSION }}" | ||
- "-X main.Commit={{ .Env.COMMIT }}" | ||
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}" | ||
- "-X main.TreeState={{ .Env.TREE_STATE }}" |