-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (39 loc) · 2.67 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
41
42
43
44
45
46
47
48
sudo: required
services:
- docker
language: java
jdk:
- oraclejdk8
before_install: cd hangar-api
after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=spedge/hangar-api
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f ./etc/docker/Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
env:
global:
- secure: "nYqD/m21mKcOT7kJhpJMO9wqYq348ElXEcfaDgDtxsuoskqJtIXE+0PC4uJBWPt9bMER3DvpX8MHLiIHW+wGxb5jn
fzg1E8HqBwOT/c4C3A0inZ0INk/tdWF7ebmnW+de4PVd3WObGw3Po2Agors1R/ieZGCob4699zUows4GmpT0r5hNZxgHB3LGISGX
QksGW/ak9/UN8qFM3CAEzsaoQucdNSDvE8TqcpTcap5lwXCSSniciKlMaJvK1je3gjdNkXsTJrQwnCjWxZ0Vzhb0zsS3Eg7oSg3I
v7BivPXrAXxDaSbB6/FDGbsgBWWxA/d9INwmFrhRsqPDON0qs6SMb/sznAerswci1b8Oat97a1ZT4SLUMwwwt773S22yvShqXd9T
B7cZZB16Iqxh8h1mftR15tGVVDroTI7Y7vs3cIHO+tEF0JOsY+ydYQ+NjEpce11qTuoSiCwkmEs3eCEMmrFutTuT7yQlPfTf5nUJ
wmGfmxHiRvjw7Ekgpzf1FU+dROWJCg80YWPgnksch5ifchpVe4oe4dXFF/Sqphgk/CRFrYM0MRBgI+ohBf7toAXDKoyBfp3e1q9D
jZ75xVIbSGWV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