Change some environment variables for easier handling.

This commit is contained in:
James Cole 2019-11-03 07:19:12 +01:00
parent 88692f0058
commit 58ec0c4add
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 10 additions and 6 deletions

View File

@ -1,13 +1,12 @@
#!/usr/bin/env bash
echo $TRAVIS_DIST
echo "I am building channel ${CHANNEL} for version ${VERSION} on architecture ${ARCH}."
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
mkdir $HOME/.docker
touch $HOME/.docker/config.json
echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
sudo service docker restart
docker version -f '{{.Server.Experimental}}'
docker version
# build everything
.deploy/docker/build-$ARCH.sh

View File

@ -10,21 +10,26 @@ branches:
services:
- docker
env:
- VERSION=4.8.2
- CHANNEL=stable
jobs:
include:
- dist: xenial
arch: amd64
env: ARCH=amd64 VERSION=4.8.2
env: ARCH=amd64
stage: build
script: ./.deploy/docker/travis.sh
- dist: xenial
arch: amd64
env: ARCH=arm VERSION=4.8.2
env: ARCH=arm
stage: build
script: ./.deploy/docker/travis.sh
- dist: xenial
arch: arm64
env: ARCH=arm64 VERSION=4.8.2
env: ARCH=arm64
stage: build
script: ./.deploy/docker/travis.sh
- dist: xenial