Skip to content

Commit 0dcf98c

Browse files
committed
Adjust CI script for maintenance branch
1 parent 4ab3951 commit 0dcf98c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,20 @@ jobs:
8989
- name: "Publish to Docker hub"
9090
stage: deploy
9191
jdk: openjdk8
92-
if: (branch = trellis-0.9.x OR branch =~ /^trellis-\d+\.\d+\.\d+$/) AND type = push
92+
if: branch =~ /^trellis-\d+\.\d+\.\d+$/ AND type = push
9393
env: JOB=docker
9494
before_script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
9595
# Note: for maintenance branches, remove the dockerPushDevelop task
9696
script:
97-
- if [[ $(./gradlew -q getVersion) == *SNAPSHOT* ]]; then ./gradlew dockerPush; else ./gradlew dockerPush dockerPushLatest; fi
97+
- ./gradlew dockerPush dockerPushLatest
9898
- ./buildtools/src/main/resources/docker/publishToDockerHub.sh
9999

100100
# deploy to AWS
101101
- name: "Publish JavaDocs"
102102
stage: deploy
103103
jdk: openjdk8
104104
env: JOB=aws
105-
if: (branch = trellis-0.9.x OR branch =~ /^trellis-\d+\.\d+\.\d+$/) AND type = push
105+
if: branch =~ /^trellis-\d+\.\d+\.\d+$/ AND type = push
106106
script: ./gradlew apidocs
107107
deploy:
108108
provider: s3

0 commit comments

Comments
 (0)