Add: Dockerfile and Makefile

This commit is contained in:
Dreamacro
2018-06-17 08:18:39 +08:00
parent ef301af04f
commit cd9f496fc9
5 changed files with 51 additions and 9 deletions

View File

@ -12,11 +12,7 @@ env:
- BINDIR=bin
script:
- go test
- GOARCH=amd64 GOOS=linux go build -o $BINDIR/$NAME-linux
- GOARCH=amd64 GOOS=darwin go build -o $BINDIR/$NAME-macos
- chmod +x $BINDIR/$NAME-*
- gzip $BINDIR/$NAME-linux
- gzip $BINDIR/$NAME-macos
before_deploy: make -j releases
deploy:
provider: releases
prerelease: true