From dec390a89fe038337399315daf15e628ffbb4d8e Mon Sep 17 00:00:00 2001 From: Afri Schoedon <5chdn@users.noreply.github.com> Date: Fri, 22 Jun 2018 17:48:36 +0200 Subject: [PATCH] scripts: fix docker build tag on latest using master (#8952) --- scripts/docker-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh index ceb085f51..1adb49c1d 100755 --- a/scripts/docker-build.sh +++ b/scripts/docker-build.sh @@ -2,6 +2,10 @@ cd docker/hub 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 . +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 docker run -it parity/parity:$DOCKER_BUILD_TAG -v docker push parity/parity:$DOCKER_BUILD_TAG