-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 2.87 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
services:
- docker
branches:
only:
- master
- k8s
env:
global:
# DOCKER_EMAIL
- secure: "ZpcxMV13K++KFxYve6JcNgTWlBvDhi2nhNa1oC89OenRwYt+eXCNOEHBHADuHlQyrs3+KNaRUUNLVgEWTcdjUos8x9krVqKIXoagl9d5SlkLTOkhmhbAxwueBL/nlL2aHYiQ47zCbj7gXAfOf4rt5WNI00tyTha0jnXbNKX7MMPTsXwbe/Y/Zdae/hYsxuentbZe3uApVGzFl1mX66DWnvOLI19u8ijD2+DLC91EJvLsmOX7brglv4pgwyhFbBpwtVoeOckb7NJbP37AMsp79M2UBdLtu7oi8ZEqxP6HLAHDobCZZQx/yNUMl2RLw5Kk72j+M+lQmGcJeU9TNH0ckdObeVFheXw18Tx+1QWq63jG1MMi9w+nG/bML70LkkXbODkwDFzQ9uR9CfIcfb+epmMdPS0UCP5x4++KsKGZDfyoj9jU8gvDWp14u2FGxQbs5w/GKMvyGJsFR3uEGb1tHtLm2AQsgByyfALOVpZzYgMh0L6rNQEhLjlG2W2IkilAaod9nHigfCnW/rqaKHEnT4p2JNSUMjs2Ch6w918bK65OuM9W+wE24shfWD/8jmtkUU5aONhJRWsjROMBRsvCHhtyGF/TBMRdl0XuenzSQaSuTkOvKmJoklUvf331Y+iMdnGX2P6eC8FQ3Z7o7gIpKW/Pewy2eH967Rx/ElCbZWw="
# DOCKER_USER
- secure: "lGGYfcPw08Dj3kpiO6RGEn9Q3ahpRTS3EhN84Ja5rrIvTPQ0RSOLungnpLjMuSV4I6H2NLYbpp5IjtG4wmA+RmHZHV3998dUJYqL1FLimaPurUFURTZCiLWGHO+81SXKOS2jhIqBMpn5veIWCKHeokfXBr0FUn35Xm/hJll8JMOZh3+8L0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zZVuY3f50nLg+TqqhZYmhDO7N9c3mT6vkZoekuDresBN+gt5BfxU89oKfhBwAtDA/jI08mS3SFnxXLXRjwTAaLzAn5ehe+9LzloheCWO9RzN0936XlHDZ/8BAPs+aqK9huLYjLQrkg="
- DOCKER_REPO=spreadspace/onion-service
before_script:
### pull current images to potentially use docker build cache
- docker pull $DOCKER_REPO:latest
script:
### build the new images
- docker build -t $DOCKER_REPO:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER .
after_success:
- >-
if [ "${TRAVIS_BRANCH}" = master ]; then
DOCKER_TAG="latest"
else
DOCKER_TAG="${TRAVIS_BRANCH}"
fi
- docker tag $DOCKER_REPO:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_REPO:$DOCKER_TAG
### push to docker-hub
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push $DOCKER_REPO:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER
- docker push $DOCKER_REPO:$DOCKER_TAG