-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 805 Bytes
/
.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
language: java
jdk:
- oraclejdk11
before_install:
- sudo apt-get update
- cd app/
- echo "Let's start Maven Package!!!"
- mvn clean package
- cd ..
- echo "We are in root dir"
script:
- docker-compose build
before_deploy:
- echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin
deploy:
provider: script
script:
docker tag docker-from-zero-to-mastery-java:latest $DOCKER_USERNAME/docker-from-zero-to-mastery-java:$TRAVIS_JOB_ID;
docker tag docker-from-zero-to-mastery-java:latest $DOCKER_USERNAME/docker-from-zero-to-mastery-java:latest;
docker push $DOCKER_USERNAME/docker-from-zero-to-mastery-java:$TRAVIS_JOB_ID;
docker push $DOCKER_USERNAME/docker-from-zero-to-mastery-java:latest;
on:
brach: master
notifications:
email: false