Skip to content

Commit 10dfb49

Browse files
committed
Moved building docker image to after_success CI step; removed CI build caching.
1 parent afec109 commit 10dfb49

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

.travis.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,26 @@ language: java
22
jdk:
33
- openjdk11
44
install: true
5-
cache:
6-
directories:
7-
- $HOME/.m2
85
script:
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}
1310
before_deploy:
14-
- export TAG=$(git describe --tags --abbrev=0)
11+
- export TAG=$(git describe --tags --abbrev=0)
1512
deploy:
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
2725
branches:
2826
only:
29-
- master
27+
- master

0 commit comments

Comments
 (0)