third try of the automatic release on separated branch

This commit is contained in:
Dragos Mateescu 2021-06-07 14:20:42 +03:00
parent 8a6d339dc0
commit 9e03587906

View file

@ -6,4 +6,4 @@ services:
before_script:
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || [ "${TRAVIS_BRANCH}" != "main" ] || docker login -u springbuildmaster -p "$DOCKERHUB_PASSWORD"'
script:
- ./mvnw spring-boot:build-image -D spring-boot.build-image.imageName=springio/petclinic && ([ "${TRAVIS_BRANCH}" != "main" ] || docker push springio/petclinic)
- './mvnw spring-boot:build-image -D spring-boot.build-image.imageName=springio/petclinic && ([ "${TRAVIS_BRANCH}" != "main" ] || docker push springio/petclinic)'