File tree Expand file tree Collapse file tree 1 file changed +18
-20
lines changed
Expand file tree Collapse file tree 1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,26 @@ language: java
22jdk :
33 - openjdk11
44install : true
5- cache :
6- directories :
7- - $HOME/.m2
85script :
9- - git config --local user.name "Travis CI"
10- -
git config --local user.email "[email protected] " 11- - git checkout -f master
12- - mvn -B release:prepare -DscmCommentPrefix="[ci skip][maven-release-plugin] " -Dusername=${GITHUB_USERNAME} -Dpassword=${GITHUB_TOKEN}
6+ - git config --local user.name "Travis CI"
7+ -
git config --local user.email "[email protected] " 8+ - git checkout -f master
9+ - mvn -B release:prepare -DscmCommentPrefix="[ci skip][maven-release-plugin] " -Dusername=${GITHUB_USERNAME} -Dpassword=${GITHUB_TOKEN}
1310before_deploy :
14- - export TAG=$(git describe --tags --abbrev=0)
11+ - export TAG=$(git describe --tags --abbrev=0)
1512deploy :
16- - provider : releases
17- skip_cleanup : true
18- api_key : ${GITHUB_TOKEN}
19- tag_name : $TAG
20- file :
21- - target/$TAG.jar
22- on :
23- repo : polarfish/update-sql
24- name : $TAG
25- - provider : script
26- script : git checkout $TAG && mvn jib:build -Djib.to.auth.username=${DOCKER_HUB_USERNAME} -Djib.to.auth.password=${DOCKER_HUB_TOKEN}
13+ skip_cleanup : true
14+ provider : releases
15+ api_key : ${GITHUB_TOKEN}
16+ tag_name : $TAG
17+ file :
18+ - target/$TAG.jar
19+ on :
20+ repo : polarfish/update-sql
21+ name : $TAG
22+ after_success :
23+ - git checkout $TAG
24+ - mvn clean package jib:build -Djib.to.auth.username=${DOCKER_HUB_USERNAME} -Djib.to.auth.password=${DOCKER_HUB_TOKEN} -Dmaven.test.skip=true
2725branches :
2826 only :
29- - master
27+ - master
You can’t perform that action at this time.
0 commit comments