Skip to content

Commit

Permalink
fix releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Apr 26, 2020
1 parent 0d57fb5 commit 235f355
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

config.prod.yml
config.prod.yml

# dist dir
dist
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
ldflags:
- -s -w -X cmd.version={{.Version}} -X cmd.commit={{.Commit}} -X cmd.date={{.Date}} -X cmd.builtBy=goreleaser
- ./usemsan=-msan
changelog:
sort: asc
filters:
Expand Down
4 changes: 3 additions & 1 deletion internal/app/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var (
version = "dev"
commit = "none"
date = "unknown"
builtBy = "unknown"
)

var versionCmd = &cobra.Command{
Expand All @@ -23,10 +24,11 @@ var versionCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(
fmt.Sprintf(
`Current Beetle Version %v Commit %v, Built @%v`,
`Current Beetle Version %v Commit %v, Built @%v by %v`,
version,
commit,
date,
builtBy,
),
)

Expand Down

0 comments on commit 235f355

Please sign in to comment.