This commit is contained in:
emile 2015-09-14 13:33:26 +02:00
parent c9a85af74b
commit fbb52dee36

View file

@ -22,5 +22,5 @@ deployment:
- docker push ${REPO,,}:$CIRCLE_SHA1 - docker push ${REPO,,}:$CIRCLE_SHA1
- go get github.com/mitchellh/gox - go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr - go get github.com/tcnksm/ghr
- gox -ldflags "-X main.Version $BUILD_VERSION -X main.BuildDate $BUILD_DATE" -output "dist/$CIRCLE_PROJECT_REPONAME_{{.OS}}_{{.Arch}}" - gox -os "linux darwin windows" -ldflags "-X main.Version $BUILD_VERSION -X main.BuildDate $BUILD_DATE" -output "dist/$CIRCLE_PROJECT_REPONAME_{{.OS}}_{{.Arch}}"
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --prerelease --replace `git describe --tags` dist/ - ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --prerelease --replace `git describe --tags` dist/