# https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
sudo: required
services:
  - docker
language: bash
script:
  - cd ./raspberry
  - docker run --rm --privileged multiarch/qemu-user-static:register --reset
  - docker build -t $DOCKER_USER/docker-magicmirror:raspberry .
after_success:
  - >
    if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
      docker push $DOCKER_USER/docker-magicmirror:raspberry
    fi

# https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
sudo: required
services:
  - docker
language: bash
script:
  - cd ./raspberry
  - docker run --rm --privileged multiarch/qemu-user-static:register --reset
  - docker build -t $DOCKER_USER/docker-magicmirror:raspberry .
  - cd ..
  - docker build -t $DOCKER_USER/docker-magicmirror:latest .
  - cd ./alpine
  - docker build -t $DOCKER_USER/docker-magicmirror:alpine .
after_success:
  - >
    if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
      docker push $DOCKER_USER/docker-magicmirror:raspberry
      docker push $DOCKER_USER/docker-magicmirror:latest
      docker push $DOCKER_USER/docker-magicmirror:alpine
    fi

Add manual docker build for tags latest and alpine
Add manual docker build for tags latest and alpine

This is necessary to enable the cron job at Travis CI so that we always have an up to date version of MagicMirror in the docker container.