forked from sunkay/k-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 2.75 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
language: node_js
node_js:
- '4'
addons:
apt:
sources:
- mongodb-3.0-precise
packages:
- mongodb-org-server
services:
- docker
- mongodb
before_script:
- sleep 15
env:
global:
# DOCKER_EMAIL
- secure: Pbbiz386Nb0Vh4sXWayTTXOsccGhE7HljmsmD955yAF08A+gQiLpoQLHH3lMPU35NqoRvvKhaz/uMESEsBHGOIoq/aRIH3cdQse9I/hj1a5EZa8jNOdxu1CxJhHjAC5tHAcsIkXjqZdYdx2TO5IcrRF71+BO2UiJeDJsz6lqE5S30CLEh3LCCyY63qAC7I1T6ZtVruZW+T954/sz3/S4QCCMC9F1nKxIb0CZLxtBKvOLS/1RadOgJfj3p2AipZOF97voOi5y2ioshWl/R6+LmDDFQjH2nwaFpNRp6YKFfozfHLfbxlv42Mm8pDcpRZkX/zwQ0Gvf2YmoP96yPyg/hNbsrjX7fqpjW8wn2kGrceVHwEYcvOQAfHMmrQQbeDUZWcrKYFnboEG4uUDKpDrhd/BJCye43JNgMZeUYwegaCtwAQYRF1SILDU4RRgINrvOQTexgYvHJDEuj09szVoRLz6TWTzEcP+5mIKUER5Y4P18XiswENYaDKf+GBADbP6eLIPP4JPgEPreo4iucqSenoiZtW4vnRVbCuMLjLKO+LpFbl616mo7NyjurwbeAewAIcEH9o+jK3NFiCP/xMv1Lg+HpbpDhuXXGvIXG/RMHorYscQ/JB+ikU5OzeCMtMa99j5BKX1r586S2ryW4p4JljPEbpFVLGSa9RSrpRoUQF4=
#DOCKER_USER:
- secure: QXFEwLxvwI2OusJPUAMCnDyGA8hIrjSZN6Y9JojlxTHjac6uBK+O1uylnxujO0Zq3rxAWCi4Qp9qDsd0LJYumIZ/jMDKw6+wzbGklJv2Wu7LZvlNai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Q/O1Jatc8RL796vPosPoNvKPefu/1jg+H/gvIikSJIioGMJ58ROSW9Uf/qeseWnUBAwooNZ5p9N3wGs7gbcgSEiONcA54OErczIxxPx23+QksL0YkUx/Jj/zc152ZwgAK24nToIE30U4Dzgy1fNYtsBVvI0JSPQ5Gk3ZC68k1NEKT8esQz3dJ3z7ZhjEc4oY=
- COMMIT=${TRAVIS_COMMIT::8}
after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=$DOCKER_USER/k-auth
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- echo $REPO:$TAG:$COMMIT
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO