Files
firefly-iii/.deploy/docker/build-generic.sh

20 lines
741 B
Bash
Raw Normal View History

2019-02-08 17:15:54 +01:00
#!/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"
2019-02-08 17:17:19 +01:00
# > original command. docker build -t whoami --build-arg "arch=$ARCH" .
2019-02-08 17:15:54 +01:00
#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