-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
65 lines (51 loc) · 3.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
dist: trusty
language: java
jdk:
- oraclejdk8
branches:
only:
- master
services:
- docker
env:
global:
- GIT_MAJOR_VERSION=2
- GIT_MINOR_VERSION=9
after_success:
- if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD;
docker tag continuityproject/idpa continuityproject/idpa:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/idpa:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/idpa continuityproject/idpa:latest;
docker push continuityproject/idpa:latest;
docker tag continuityproject/wessbas continuityproject/wessbas:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/wessbas:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/wessbas continuityproject/wessbas:latest;
docker push continuityproject/wessbas:latest;
docker tag continuityproject/request-rates continuityproject/request-rates:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/request-rates:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/request-rates continuityproject/request-rates:latest;
docker push continuityproject/request-rates:latest;
docker tag continuityproject/cobra continuityproject/cobra:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/cobra:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/cobra continuityproject/cobra:latest;
docker push continuityproject/cobra:latest;
docker tag continuityproject/jmeter continuityproject/jmeter:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/jmeter:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/jmeter continuityproject/jmeter:latest;
docker push continuityproject/jmeter:latest;
docker tag continuityproject/orchestrator continuityproject/orchestrator:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/orchestrator:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/orchestrator continuityproject/orchestrator:latest;
docker push continuityproject/orchestrator:latest;
docker tag continuityproject/eureka continuityproject/eureka:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/eureka:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/eureka continuityproject/eureka:latest;
docker push continuityproject/eureka:latest;
docker tag continuityproject/cli continuityproject/cli:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker push continuityproject/cli:$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER;
docker tag continuityproject/cli continuityproject/cli:latest;
docker push continuityproject/cli:latest;
fi
script:
- ./gradlew build docker