Skip to content

Commit

Permalink
Back to classic build.
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Feb 10, 2019
1 parent c5af1d3 commit ccf60f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .deploy/docker/build-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

if [ "$TRAVIS_BRANCH" == "develop" ]; then
echo "Build develop amd64"
docker build -t jc5x/firefly-iii:develop-amd -f Dockerfile .
docker build -t jc5x/firefly-iii:develop-amd -f Dockerfile.amd64 .
docker push jc5x/firefly-iii:develop-amd
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Build master amd64"
docker build -t jc5x/firefly-iii:latest-amd -f Dockerfile .
docker build -t jc5x/firefly-iii:latest-amd -f Dockerfile.amd64 .
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
Expand Down
4 changes: 2 additions & 2 deletions .deploy/docker/build-arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

if [ "$TRAVIS_BRANCH" == "develop" ]; then
echo "Build develop arm"
docker build --tag jc5x/firefly-iii:develop-arm --file Dockerfile-ARM .
docker build --tag jc5x/firefly-iii:develop-arm --file Dockerfile.arm .
docker push jc5x/firefly-iii:develop-arm
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Build master arm"
docker build --tag jc5x/firefly-iii:latest-arm --file Dockerfile-ARM .
docker build --tag jc5x/firefly-iii:latest-arm --file 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
Expand Down
28 changes: 0 additions & 28 deletions .deploy/docker/build-generic.sh

This file was deleted.

13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
sudo: required
language: bash
env:
global:
- VERSION=4.7.11
matrix:
- ARCH=arm
#- ARCH=arm64
- ARCH=amd64
- VERSION=4.7.11

dist: xenial

# safelist
branches:
only:
Expand All @@ -23,5 +20,7 @@ script:
- sudo service docker restart
- docker version -f '{{.Server.Experimental}}'
- docker version
- .deploy/docker/build-generic.sh
# build everything
- .deploy/docker/build-amd64.sh
- .deploy/docker/build-arm.sh
- .deploy/docker/manifest.sh

0 comments on commit ccf60f4

Please sign in to comment.