build linux binary

This commit is contained in:
Niilo Ursin 2017-11-10 23:32:03 +02:00
parent 2cb9747d2f
commit e8424b212d

View file

@ -11,7 +11,7 @@ env:
services: services:
- docker - docker
script: script:
- go build -v ./... - env GOOS=linux GOARCH=amd64 go build
- docker build --no-cache -t niilo/clamav-rest . - docker build --no-cache -t niilo/clamav-rest .
after_success: after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; docker push niilo/clamav-rest; fi - if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; docker push niilo/clamav-rest; fi