forked from ghostmonitor/docker-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 896 Bytes
/
.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
33
34
35
36
37
language: ruby
sudo: required
dist: trusty
cache:
apt: true
env:
global:
- DOCKER_VERSION=1.13.1-0~ubuntu-trusty
- DOCKER_COMPOSE_VERSION=1.11.0
- DOCKER_IMAGE_TAG=0.39
before_install:
- sudo apt-get update
- git clone --branch docker-trusty --depth=1 https://github.com/rezzza/travis-ci.git ~/.rezzza-utils
- ~/.rezzza-utils/bootstrap.sh
script:
- docker build -t rezzza/ci-docker-flow:$DOCKER_IMAGE_TAG .
after_success:
- docker images
- |
if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ] ; then
docker login -u="$DOCKER_HUB_LOGIN" -p="$DOCKER_HUB_PASSWORD" \
&& docker push rezzza/ci-docker-flow:$DOCKER_IMAGE_TAG
fi
notifications:
slack: verylastroom:yqs3UqNXq6H3L9p8npeVFWgh
email:
recipients:
- ci@karibbu.com
on_success: change
on_failure: change