Skip to content

Commit

Permalink
build: fix commit and ref embedding through ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
clementnuss committed Feb 21, 2023
1 parent 9ddc539 commit 33043fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
builds:
- id: kubelet-csr-approver
dir: .
- id: kubelet-csr-approver
dir: .
main: ./cmd/kubelet-csr-approver/
env:
- CGO_ENABLED=0
ldflags:
- -X main.commit={{.Env.COMMIT}}
- -X main.ref={{.Env.REF}}
- -X github.com/postfinance/kubelet-csr-approver/internal/cmd.commit={{.Env.COMMIT}}
- -X github.com/postfinance/kubelet-csr-approver/internal/cmd.ref={{.Env.REF}}


0 comments on commit 33043fd

Please sign in to comment.