mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 02:38:09 +00:00
20 lines
748 B
Bash
Executable File
20 lines
748 B
Bash
Executable File
#!/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"
|
|
# > original command. docker build -t whoami --build-arg "arch=$ARCH" .
|
|
docker build -t jc5x/firefly-iii:develop-$ARCH -f Dockerfile.$ARCH --build-arg "arch=$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 |