21 lines
808 B
YAML
21 lines
808 B
YAML
language: bash
|
|
dist: bionic
|
|
env:
|
|
global:
|
|
- DOCKER_REPO=jacobalberty/unifi
|
|
services:
|
|
- docker
|
|
before_install:
|
|
- sudo rm -rf /var/lib/apt/lists/*
|
|
- 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) edge"
|
|
- sudo apt-get update
|
|
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
|
- mkdir -vp ~/.docker/cli-plugins/
|
|
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.4.2/buildx-v0.4.2.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
|
|
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
install:
|
|
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
- docker buildx create --use
|
|
script: bash ci.sh
|