mirror of https://github.com/tidwall/tile38.git
Removes commands that where added for debugging
This commit is contained in:
parent
be3d48c8cb
commit
a5120e04c9
|
@ -6,27 +6,24 @@ cd $(dirname "${BASH_SOURCE[0]}")/..
|
||||||
# GIT_BRANCH is the current branch name
|
# GIT_BRANCH is the current branch name
|
||||||
export GIT_BRANCH=$(git branch --show-current)
|
export GIT_BRANCH=$(git branch --show-current)
|
||||||
# GIT_VERSION - always the last verison number, like 1.12.1.
|
# GIT_VERSION - always the last verison number, like 1.12.1.
|
||||||
export GIT_VERSION=$(git describe --tags --abbrev=0)
|
export GIT_VERSION=$(git describe --tags --abbrev=0)
|
||||||
# GIT_COMMIT_SHORT - the short git commit number, like a718ef0.
|
# GIT_COMMIT_SHORT - the short git commit number, like a718ef0.
|
||||||
export GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)
|
export GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)
|
||||||
# DOCKER_REPO - the base repository name to push the docker build to.
|
# DOCKER_REPO - the base repository name to push the docker build to.
|
||||||
export DOCKER_REPO=$DOCKER_USER/tile38
|
export DOCKER_REPO=$DOCKER_USER/tile38
|
||||||
|
|
||||||
docker images
|
|
||||||
docker inspect $DOCKER_REPO:$GIT_COMMIT_SHORT
|
|
||||||
|
|
||||||
if [ "$GIT_BRANCH" != "master" ]; then
|
if [ "$GIT_BRANCH" != "master" ]; then
|
||||||
echo "Not pushing, not on master"
|
echo "Not pushing, not on master"
|
||||||
elif [ "$DOCKER_USER" == "" ]; then
|
elif [ "$DOCKER_USER" == "" ]; then
|
||||||
echo "Not pushing, DOCKER_USER not set"
|
echo "Not pushing, DOCKER_USER not set"
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$DOCKER_LOGIN" == "" ]; then
|
elif [ "$DOCKER_LOGIN" == "" ]; then
|
||||||
echo "Not pushing, DOCKER_LOGIN not set"
|
echo "Not pushing, DOCKER_LOGIN not set"
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$DOCKER_PASSWORD" == "" ]; then
|
elif [ "$DOCKER_PASSWORD" == "" ]; then
|
||||||
echo "Not pushing, DOCKER_PASSWORD not set"
|
echo "Not pushing, DOCKER_PASSWORD not set"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
# setup cross platform builder
|
# setup cross platform builder
|
||||||
# https://github.com/tonistiigi/binfmt
|
# https://github.com/tonistiigi/binfmt
|
||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
|
|
Loading…
Reference in New Issue