blob: 8ed2cdf7117063270b67d28b8fe4a62d2c021da5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
language: minimal
os: linux
dist: bionic
services:
- docker
addons:
apt:
# Newer docker for BuildKit/buildx support:
packages:
- docker-ce
sources:
- key_url: 'https://download.docker.com/linux/ubuntu/gpg'
sourceline: 'deb https://download.docker.com/linux/ubuntu "$(lsb_release -cs)" stable'
install:
# GCR & BuildKit don't place nice 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 native images
script: make docker-build
- name: Build native images using Compose
script: sudo make install-compose && make compose-build
- name: Build multi-arch images
if: branch != master
script: make builder/create && make buildx
- name: Build & publish multi-arch images
if: branch = master
script: make login && make builder/create && make push
|