Docker builds through Travis CI

This commit is contained in:
Josh Baker 2018-04-30 08:30:30 -07:00
parent 0ee32ed95c
commit 7567b8d63e
2 changed files with 4 additions and 6 deletions

View File

@ -7,7 +7,7 @@ script:
- make test - make test
after_success: after_success:
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin - echo $DOCKER_PASSWORD | docker login -u $DOCKER_LOGIN --password-stdin
- export REPO=$DOCKER_USER/tile38 - export REPO=$DOCKER_USER/tile38
- export COMMIT_SHORT=$(git rev-parse --short HEAD) - export COMMIT_SHORT=$(git rev-parse --short HEAD)
- docker build -f docker/Dockerfile -t $REPO:$COMMIT_SHORT . - docker build -f docker/Dockerfile -t $REPO:$COMMIT_SHORT .

View File

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
set -e set -e
cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
VERSION=$(git describe --tags --abbrev=0) VERSION=$(git describe --tags --abbrev=0)
PROTECTED_MODE="no" PROTECTED_MODE="no"
@ -72,11 +75,6 @@ if [ "$GOVERS" != "devel" ]; then
fi fi
fi fi
export GO15VENDOREXPERIMENT=1
cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
package(){ package(){
echo Packaging $1 Binary echo Packaging $1 Binary
bdir=tile38-${VERSION}-$2-$3 bdir=tile38-${VERSION}-$2-$3