From e8424b212d0be678c9246fca8355ed7f4d9a0d2c Mon Sep 17 00:00:00 2001 From: Niilo Ursin Date: Fri, 10 Nov 2017 23:32:03 +0200 Subject: [PATCH] build linux binary --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e46c090..bfa0fd1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ env: services: - docker script: -- go build -v ./... +- env GOOS=linux GOARCH=amd64 go build - docker build --no-cache -t niilo/clamav-rest . after_success: - if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; docker push niilo/clamav-rest; fi