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

30 lines
1.1 KiB
Bash
Raw Normal View History

2019-02-02 17:08:46 +01:00
#!/usr/bin/env bash
2019-02-02 19:10:46 +01:00
2019-02-02 17:08:46 +01:00
docker run --rm --privileged multiarch/qemu-user-static:register --reset
2019-02-02 19:05:11 +01:00
2019-02-02 17:08:46 +01:00
# get qemu-arm-static binary
mkdir tmp
pushd tmp && \
curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz && \
tar xzf qemu-arm-static.tar.gz && \
popd
# build image
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
if [ "$TRAVIS_BRANCH" == "develop" ]; then
2019-02-02 17:59:18 +01:00
echo "Build develop arm"
2019-02-10 08:07:25 +01:00
docker build --tag jc5x/firefly-iii:develop-arm --file Dockerfile.arm .
2019-02-15 17:15:42 +01:00
docker tag jc5x/firefly-iii:develop-arm jc5x/firefly-iii:develop-$VERSION-arm
2019-02-02 19:26:02 +01:00
docker push jc5x/firefly-iii:develop-arm
2019-02-15 17:15:42 +01:00
docker tag jc5x/firefly-iii:develop-$VERSION-arm
2019-02-02 17:08:46 +01:00
fi
if [ "$TRAVIS_BRANCH" == "master" ]; then
2019-02-02 17:59:18 +01:00
echo "Build master arm"
2019-02-10 08:07:25 +01:00
docker build --tag jc5x/firefly-iii:latest-arm --file Dockerfile.arm .
2019-02-02 17:59:18 +01:00
docker tag jc5x/firefly-iii:latest-arm jc5x/firefly-iii:release-$VERSION-arm
2019-02-02 17:08:46 +01:00
docker push jc5x/firefly-iii:latest-arm
docker push jc5x/firefly-iii:release-$VERSION-arm
fi