-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (27 loc) · 1.06 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
sudo: required
language: generic
services:
- docker
env:
global:
- BUILDER_VERSION_PREFIX: 0.0
- TILE_VERSION: 0.0.1
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 install docker-ce
- sudo service docker restart
- git submodule update --recursive --init
script:
- docker build -t p-weave-builder .
- docker run -v $(pwd):/work -ti p-weave-builder $TILE_VERSION
- sudo ls -sh weave-cloud-${TILE_VERSION}.pivotal
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS";
docker tag p-weave-builder weaveworks/p-weave-builder:latest;
docker tag p-weave-builder weaveworks/p-weave-builder:${BUILDER_VERSION_PREFIX}.${TRAVIS_BUILD_NUMBER};
docker push weaveworks/p-weave-builder:latest;
docker push weaveworks/p-weave-builder:${BUILDER_VERSION_PREFIX}.${TRAVIS_BUILD_NUMBER};
fi