Commit 4ec78f4
authored
fix: inject version and commit via ldflags in CI builds (#621)
The release and build workflows called go build without -ldflags,
so the binary always had Version=0.0.0 and GitCommit=HEAD.
- release.yml: inject both Version (from tag) and GitCommit
- build.yml: inject GitCommit (no version tag on main builds)
Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>1 parent 03f5914 commit 4ec78f4
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments