forked from tchiotludo/akhq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 2.82 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
language: java
install: true
jdk:
- openjdk11
addons:
apt:
packages:
- nodejs
- npm
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules
script:
- set -e
# Gradle
- ./gradlew --console=plain test
- ./gradlew --console=plain shadowJar
# Docker Build
- cp build/libs/kafkahq-*.jar docker/app/kafkahq.jar
- docker build . -t $TRAVIS_COMMIT
# Docker Tag
- if [ ! -z "$TRAVIS_TAG" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:$TRAVIS_TAG;
docker push tchiotludo/kafkahq:$TRAVIS_TAG;
fi
# Docker Branch
- if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:latest;
docker push tchiotludo/kafkahq:latest;
elif [ "$TRAVIS_BRANCH" == "dev" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:$TRAVIS_BRANCH;
docker push tchiotludo/kafkahq:$TRAVIS_BRANCH;
fi
- set +e
deploy:
- provider: releases
api_key:
secure: Zb/iCIzv0qe+Ka/A6U7wSKUZ8AlQFY8jm0Mla1hcFZTTLs95NmIudxozuJr+D9rO3hqnkkeh23nfaNzGYLD6elLpDaFn3UpI2caA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