aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/.travis.yml
blob: 3259496c896dd60beeec1ac336816c5d3d5d6c61 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                 

            
 

          



                
                                               





                                                                                              




                                                
 












                                                             
language: minimal
os: linux
dist: bionic

services:
  - docker

addons:
  apt:
    update: true
    # Newer docker for BuildKit/buildx support:
    sources:
      - key_url: 'https://download.docker.com/linux/ubuntu/gpg'
        sourceline: 'deb https://download.docker.com/linux/ubuntu "$(lsb_release -cs)" stable'
    packages:
      - docker-ce

install:
  # GCR & BuildKit don't work together, e.g.:
  # https://github.com/moby/buildkit/issues/606
  - echo '{}' | sudo tee /etc/docker/daemon.json
  - sudo systemctl restart docker

jobs:
  include:
    - name: Build and publish multi-arch images
      script: |-
          if [ "$TRAVIS_BRANCH" = master ]; then
              make login && make builder/create && make push
          else
              make builder/create && make build
          fi
    - name: Build native images using Compose
      script: sudo make install-compose && make compose-build
    - name: Build native images using Docker
      script: make docker-build