Skip to content

Commit

Permalink
Update ldflags in goreleaser to capture build info during release
Browse files Browse the repository at this point in the history
Signed-off-by: Santosh <ksantosh@intelops.dev>
  • Loading branch information
santoshkal committed Jun 7, 2024
1 parent 4b1950f commit 564ee8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
K8S_1.29="ghcr.io/santoshkal/artifacts/cuemods/cuemod-k8sv:1.29"
DOCKERFILEPOLICIES = "ghcr.io/santoshkal/genval-security-policies/rego-policies:v0.0.1"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ genval
cosign
.todo
!.devcontainer/Dockerfile
results.json
results.json
.env
11 changes: 4 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ builds:
# trims path
- -trimpath
ldflags:
# # CommitDate makes the release reproducible
- -X main.Version={{ .Tag }}
- -X .Runtime.Goarch={{ .Arch }}
- -X .Runtime.Gooss={{ .Os }}
- -X main.Date={{ .CommitDate }}
- -X main.Commit={{ .FullCommit }}
- -X main.GitTreeState={{ .GitTreeState }}
- -X sigs.k8s.io/release-utils/version.gitVersion={{ .Tag }}
- -X sigs.k8s.io/release-utils/version.gitCommit={{ .FullCommit }}
- -X sigs.k8s.io/release-utils/version.gitTreeState={{ .GitTreeState }}
- -X sigs.k8s.io/release-utils/version.buildDate={{ .Date }}


checksum:
Expand Down

0 comments on commit 564ee8e

Please sign in to comment.