Skip to content

Commit

Permalink
Merge pull request #2 from crowdworks/goreleaser
Browse files Browse the repository at this point in the history
Use goreleaser for build and release
  • Loading branch information
minamijoyo committed Aug 30, 2017
2 parents 6318d52 + bfc04f6 commit 62a1f68
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.envrc
/bin/
/vendor/
/dist/
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# .goreleaser.yml
# Build customization
builds:
- binary: cyqldog
goos:
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
9 changes: 8 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ import (
_ "github.com/lib/pq"
)

var (
// Version information embedded at build time.
version = "dev"
commit = "none"
date = "unknown"
)

func main() {
log.Println("main: start")
log.Printf("main: starting cyqldog (version: %s, commit: %s, date: %s)", version, commit, date)

// Parse the argument's flag.
var configPath string
Expand Down

0 comments on commit 62a1f68

Please sign in to comment.