2019-01-22 23:31:17 +00:00
|
|
|
dist: xenial
|
|
|
|
language: generic
|
|
|
|
sudo: required
|
|
|
|
go:
|
|
|
|
- stable
|
|
|
|
services:
|
|
|
|
- docker
|
2019-01-23 00:08:08 +00:00
|
|
|
env:
|
|
|
|
- BUILD_ARCH=arm32v7
|
|
|
|
- BUILD_ARCH=arm64v8
|
2019-01-24 12:34:11 +00:00
|
|
|
before_install:
|
2019-01-24 12:46:58 +00:00
|
|
|
- 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 xenial stable"
|
2019-01-24 12:34:11 +00:00
|
|
|
- sudo apt update -y && sudo apt install --only-upgrade docker-ce -y
|
|
|
|
- docker info
|
2019-01-22 23:31:17 +00:00
|
|
|
install:
|
|
|
|
- 'echo ''{ "experimental": true }'' | sudo tee /etc/docker/daemon.json'
|
|
|
|
- sudo systemctl restart docker
|
|
|
|
- sudo apt-get --yes --no-install-recommends install qemu-user-static
|
2019-01-23 10:01:54 +00:00
|
|
|
before_script:
|
2019-01-23 10:16:30 +00:00
|
|
|
- sudo ./prepare-qemu
|
2019-01-22 23:31:17 +00:00
|
|
|
script:
|
|
|
|
- ./build
|
|
|
|
after_success:
|
|
|
|
- '[ "$TRAVIS_PULL_REQUEST" == "false" ] && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && ./push'
|
2019-01-23 10:36:27 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: deploy
|
|
|
|
name: "Create Manifest"
|
2019-01-23 23:13:38 +00:00
|
|
|
install: 'mkdir $HOME/.docker/ && echo ''{ "experimental": "enabled" }'' > $HOME/.docker/config.json'
|
2019-01-23 11:34:04 +00:00
|
|
|
before_script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
2019-01-23 10:36:27 +00:00
|
|
|
script: ./create-manifest
|