Different build flow.

This commit is contained in:
James Cole
2019-02-08 17:15:54 +01:00
parent a1ac1a4a29
commit d0d7c437f2
2 changed files with 28 additions and 6 deletions

20
.deploy/docker/build-generic.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# build image
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# build develop
if [ "$TRAVIS_BRANCH" == "develop" ]; then
echo "Build develop $ARCH"
#docker build -t whoami --build-arg "arch=$ARCH" .
#docker build -t jc5x/firefly-iii:develop -f Dockerfile --build-arg "arch=$env:ARCH" .
#docker push jc5x/firefly-iii:develop
fi
#if [ "$TRAVIS_BRANCH" == "master" ]; then
# echo "Build master amd64"
# docker build -t jc5x/firefly-iii:latest-amd -f Dockerfile .
# 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
#fi