This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 loc) · 2.52 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
33
34
35
36
37
38
39
40
sudo: required
dist: trusty
language: c
services:
- docker
addons:
apt:
sources:
- sourceline: deb https://download.docker.com/linux/ubuntu trusty stable
key_url: https://download.docker.com/linux/ubuntu/gpg
packages:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- docker-ce
before_install:
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then docker login -u $DOCKER_USER -p $DOCKER_PASSWORD; fi
script:
- docker build -t tanibox/php7-fpm -f php-fpm/Dockerfile .
- docker build -t tanibox/php7-fpm-nginx-supervisord -f php-fpm-nginx-supervisord/Dockerfile .
- docker tag tanibox/php7-fpm:latest tanibox/php7-fpm:travis-$TRAVIS_BUILD_NUMBER
- docker tag tanibox/php7-fpm-nginx-supervisord tanibox/php7-fpm-nginx-supervisord:travis-$TRAVIS_BUILD_NUMBER
after_success:
- |
set -e
if [ $TRAVIS_PULL_REQUEST == "false" ]
then
docker push tanibox/php7-fpm
docker push tanibox/php7-fpm-nginx-supervisord
docker push tanibox/php7-fpm:travis-$TRAVIS_BUILD_NUMBER
docker push tanibox/php7-fpm-nginx-supervisord:travis-$TRAVIS_BUILD_NUMBER
fi
env:
global:
- secure: g0ywdrBBhCtpMPTjSf/D5DhuiXaMUYGWKfmReQ5OK6RIWBpIPmJpyhbl5ZAvVPMzx354MuqeWGYpGr39KGlEQ5Jes5ijOBjPvpqs1P48uDIVbMyfYCaIphGdVn4e65HpX2Y8LxwmoLwdRrx9pMDVqd+snSOuWg7AELHpjrDwRMEPbLlaF1kpFjJfdC2dh49H0j8psfn1TLtpL+QqYE+5OFhiwgZZZDKG8wOXx3hl0GPP7cpmRKBGkl124+Jndz7LraUt4MUNNin+QHOuwBvOAK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