openethereum/scripts/docker-build.sh

12 lines
457 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2017-02-26 22:14:23 +01:00
cd docker/hub
2017-07-18 15:12:16 +02:00
DOCKER_BUILD_TAG=$1
2017-07-17 11:06:32 +02:00
echo "Docker build tag: " $DOCKER_BUILD_TAG
if [[ "$DOCKER_BUILD_TAG" = "latest" ]]; then
docker build --build-arg BUILD_TAG="master" --no-cache=true --tag parity/parity:$DOCKER_BUILD_TAG .
else
docker build --build-arg BUILD_TAG=$DOCKER_BUILD_TAG --no-cache=true --tag parity/parity:$DOCKER_BUILD_TAG .
fi
2017-07-18 15:12:16 +02:00
docker run -it parity/parity:$DOCKER_BUILD_TAG -v
2017-07-18 15:17:33 +02:00
docker push parity/parity:$DOCKER_BUILD_TAG