Improve build scripts.

This commit is contained in:
James Cole
2019-02-02 17:59:18 +01:00
parent 6b94210de5
commit 33ccf7c707
2 changed files with 10 additions and 4 deletions

View File

@@ -9,15 +9,18 @@ tar xzf qemu-arm-static.tar.gz && \
popd
# build image
docker build -t jc5x/ff-test-builds:develop -f Dockerfile-ARM .
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
if [ "$TRAVIS_BRANCH" == "develop" ]; then
echo "Build develop arm"
docker build -t jc5x/firefly-iii:develop-arm -f Dockerfile-ARM .
docker push jc5x/firefly-iii:develop-arm
fi
if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
echo "Build master arm"
docker build -t jc5x/firefly-iii:latest-arm -f Dockerfile-ARM .
docker tag jc5x/firefly-iii:latest-arm jc5x/firefly-iii:release-$VERSION-arm
docker push jc5x/firefly-iii:latest-arm
docker push jc5x/firefly-iii:release-$VERSION-arm
fi