Skip to content

Commit

Permalink
update version in goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 12, 2023
1 parent 75ac501 commit 768eebd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ builds:
- amd64
- arm
- arm64
ldflags:
- "-X 'github.com/equinor/radix-cli/cmd.Version={{ .Version }}'"
dockers:
- image_templates:
- "ghcr.io/equinor/radix/rx:latest"
Expand Down
6 changes: 2 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ const (
radixCLIError = "Error: Radix CLI executed with error"
)

//go:generate sh -c "printf %s $(git describe --tags) > tag.txt"
//go:embed tag.txt
var version string
var Version = "dev"
var rootLongHelp = strings.TrimSpace(`
A command line interface which allows you to interact with the Radix platform through automation.
`)
Expand All @@ -34,7 +32,7 @@ var rootCmd = &cobra.Command{
Use: "rx",
Short: "Command line interface for Radix platform",
Long: rootLongHelp,
Version: "version: " + version,
Version: Version,
}

// Execute the top level command
Expand Down

0 comments on commit 768eebd

Please sign in to comment.