Compile without CGO usage

This commit is contained in:
ErickSkrauch 2018-02-17 01:25:24 +03:00
parent ded50df8b8
commit 2cd97dda8b
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -27,7 +27,7 @@ jobs:
- export DOCKER_TAG="${TRAVIS_TAG:-dev}"
- export APP_VERSION="${TRAVIS_TAG:-dev-${TRAVIS_COMMIT:0:7}}"
- >
env GOOS=linux GOARCH=amd64
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64
go build
-o release/chrly
-ldflags '-extldflags "-static" -X github.com/elyby/chrly/bootstrap.version=$APP_VERSION'