forked from kerberos-io/kerberos-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.21 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
language: bash
services:
- docker
script:
- echo "Building Kerberos.io docker container."
notifications:
email:
recipients:
- cedric@verstraeten.io
on_success: always
on_failure: always
irc:
channels:
- chat.freenode.net#kerberos.io
on_success: always
on_failure: always
slack:
rooms:
secure: pBC48TUzwFhXs2maG9a+Sd0+P3OBAS0vXi4xSraIrk0IBJCQjwH+yu3/RFT0nzCrltWuLr6e+iGtnBAl8P3QuijaNaBNJly5m1LI+Z4iGH2KzUdX/2wBOP+ALsv+mXnM3ORguBwcrMDpXMaH7UDcVQARoPxvK35Opr1RKPuQtLo=
on_success: always
on_failure: always
after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker login -u="$DOCKER_USERNAME"
-p="$DOCKER_PASSWORD"; if [ "$TRAVIS_BRANCH" == "master" ]; then docker build -t
kerberos .; docker tag kerberos kerberos/kerberos:linux-amd64; docker push kerberos/kerberos:linux-amd64; else
docker build --build-arg APP_ENV="$TRAVIS_BRANCH" -t kerberos .; docker tag kerberos kerberos/kerberos:$TRAVIS_BRANCH;
docker push kerberos/kerberos:$TRAVIS_BRANCH; fi fi
env:
global:
secure: m9J2f2AphCP8fSMOONTWVHmyabBEAaBWgoXSN6c9dfKbNbN3OS3V2wbiB8OO7PuaVZegjRbsCGlB4dUoD1FAAYdyIero2yg3H7cvmKIAmoRsROJvACZh4I52g5iGCxxxLsXyhRet6FY3Tg+ztN71eKsBf7Eaggja0CUnfNz6Byc=