mirror of https://github.com/tidwall/tile38.git
Docker builds through Travis CI
This commit is contained in:
parent
0ee32ed95c
commit
7567b8d63e
|
@ -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 .
|
||||||
|
|
8
build.sh
8
build.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue