fix docker build in beta

This commit is contained in:
Denis S. Soldatov aka General-Beck
2017-07-18 16:13:19 +03:00
parent ac02d12fa8
commit 96e60d9c91
4 changed files with 10 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
cd docker/hub
if [ "$1" == "latest" ]; then DOCKER_BUILD_TAG="beta-release"; fi
docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag $2/parity:$1 .
docker push $2/parity:$1
DOCKER_BUILD_TAG=$1
echo "Docker build tag: " $DOCKER_BUILD_TAG
docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag parity/parity:$DOCKER_BUILD_TAG .
docker run -it parity/parity:$DOCKER_BUILD_TAG -v
#docker push parity/parity:$DOCKER_BUILD_TAG