From 7526f13ca9b70547df758580f847a1eb21ede64d Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 11 Feb 2019 17:07:34 +0100 Subject: [PATCH] Update build script. --- .deploy/docker/build-amd64.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.deploy/docker/build-amd64.sh b/.deploy/docker/build-amd64.sh index b3cfcb13f5..78753b6fd8 100755 --- a/.deploy/docker/build-amd64.sh +++ b/.deploy/docker/build-amd64.sh @@ -3,16 +3,18 @@ # build image echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + + if [ "$TRAVIS_BRANCH" == "develop" ]; then echo "Build develop amd64" - docker build -t jc5x/firefly-iii:develop-amd -f Dockerfile.amd64 . - docker push jc5x/firefly-iii:develop-amd + docker build -t jc5x/firefly-iii:develop-amd64 -f Dockerfile.amd64 . + docker push jc5x/firefly-iii:develop-amd64 fi if [ "$TRAVIS_BRANCH" == "master" ]; then echo "Build master amd64" - docker build -t jc5x/firefly-iii:latest-amd -f Dockerfile.amd64 . - docker tag jc5x/firefly-iii:latest-amd jc5x/firefly-iii:release-$VERSION-amd - docker push jc5x/firefly-iii:latest-amd - docker push jc5x/firefly-iii:release-$VERSION-amd + docker build -t jc5x/firefly-iii:latest-amd64 -f Dockerfile.amd64 . + docker tag jc5x/firefly-iii:latest-amd64 jc5x/firefly-iii:release-$VERSION-amd64 + docker push jc5x/firefly-iii:latest-amd64 + docker push jc5x/firefly-iii:release-$VERSION-amd64 fi \ No newline at end of file