2018-06-25 11:21:45 +02:00
|
|
|
#!/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
|
2018-06-22 17:48:36 +02:00
|
|
|
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
|