Skip to content

Commit

Permalink
chore: add ldflags for version (#211)
Browse files Browse the repository at this point in the history
* chore: add ldflags for version

Signed-off-by: Bence Csati <bcsati@cisco.com>

* chore: add version

Signed-off-by: Bence Csati <bcsati@cisco.com>

---------

Signed-off-by: Bence Csati <bcsati@cisco.com>
  • Loading branch information
csatib02 authored Jul 2, 2024
1 parent 3e39338 commit 3d4bed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ before:
builds:
- env:
- CGO_ENABLED=0
ldflags: "-s -w -X main.Version={{ .Version }}"
main: ./cmd/
goos:
- linux
Expand Down
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import (
"github.com/bank-vaults/secret-sync/pkg/config"
)

var Version = "v0.1.3"

func main() {
config := config.LoadConfig()

Expand Down

0 comments on commit 3d4bed4

Please sign in to comment.