This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
forked from microcks/microcks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (53 loc) · 2.4 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
sudo: required
language: java
jdk:
- openjdk11
node_js: "8.11.3"
services:
- docker
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
cd webapp/;
mvn -B -q -Pprod -DskipTests package docker:build;
docker tag microcks/microcks microcks/microcks:latest;
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push microcks/microcks:latest;
docker tag microcks/microcks:latest quay.io/microcks/microcks:latest;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks:latest;
cd ../minions/async/;
mvn -B -q -DskipTests package;
docker build -f src/main/docker/Dockerfile.jvm -t quay.io/microcks/microcks-async-minion:latest .;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks-async-minion:latest;
fi
- if [ "$TRAVIS_BRANCH" == "1.0.x" ]; then
cd webapp/;
mvn -B -q -Pprod -DskipTests package docker:build;
docker tag microcks/microcks microcks/microcks:nightly;
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push microcks/microcks:nightly;
docker tag microcks/microcks:nightly quay.io/microcks/microcks:nightly;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks:nightly;
cd ../minions/async/;
mvn -B -q -DskipTests package;
docker build -f src/main/docker/Dockerfile.jvm -t quay.io/microcks/microcks-async-minion:nightly .;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks-async-minion:nightly;
fi
- if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
cd webapp/;
mvn -B -q -Pprod -DskipTests package docker:build;
docker tag microcks/microcks microcks/microcks:$TRAVIS_TAG;
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push microcks/microcks:$TRAVIS_TAG;
docker tag microcks/microcks:$TRAVIS_TAG quay.io/microcks/microcks:$TRAVIS_TAG;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks:$TRAVIS_TAG;
cd ../minions/async/;
mvn -B -q -DskipTests package;
docker build -f src/main/docker/Dockerfile.jvm -t quay.io/microcks/microcks-async-minion:$TRAVIS_TAG .;
docker login -u "$QUAY_USERNAME" -p "$QUAY_PASSWORD" quay.io;
docker push quay.io/microcks/microcks-async-minion:$TRAVIS_TAG;
fi