forked from thirdgen88/ignition-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (26 loc) · 1.02 KB
/
.travis.yml
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
language: minimal
services:
- docker
env:
global:
- DOCKER_CLI_EXPERIMENTAL=enabled
matrix:
- BUILD_TARGET=.multibuild-7.9 DOCKER_MULTI_ARCH=linux/amd64
- BUILD_TARGET=.multibuild-8.0 DOCKER_MULTI_ARCH=linux/arm,linux/amd64,linux/arm64
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
before_script:
- sudo service docker restart
- docker run --privileged linuxkit/binfmt:v0.8
- docker buildx create --name mybuilder --use --driver-opt network=host
- echo $HUB_PASSWORD | docker login -u "$HUB_LOGIN" --password-stdin
script:
# Run multibuild and override BASE_IMAGE_NAME so that things flow to Docker Hub
- make ${BUILD_TARGET} BASE_IMAGE_NAME=kcollins/ignition DOCKER_MULTI_ARCH=${DOCKER_MULTI_ARCH}
branches:
only:
- master
- nightly