Skip to content

Commit

Permalink
Add version information
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnefoa committed Sep 2, 2019
1 parent 5171e3c commit 03d14f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
#- env:
# - CGO_ENABLED=0
- id: "cache_builder"
main: cmd/cache_builder/main.go
binary: cache_builder
env:
- CGO_ENABLED=0
# ldflags:
# - -s -w -X github.com/upbitit/fds/server/cmd.version={{.Version}} -X github.com/upbitit/fds/server/cmd.commit={{.Commit}} -X github.com/upbitit/fds/server/cmd.date={{.Date}}
ldflags:
- -X main.GitCommit={{.Commit}} -X main.GitBranch={{.Tag}} -X main.BuildDate={{.Date}} -X main.Version={{.Version}}

# GOOS list to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
Expand Down

0 comments on commit 03d14f5

Please sign in to comment.