mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 06:19:38 +00:00
Only publish docker image from main branch
This commit is contained in:
parent
a0d743cfed
commit
e2fbc56130
1 changed files with 1 additions and 1 deletions
|
@ -6,4 +6,4 @@ services:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u springbuildmaster -p "$DOCKERHUB_PASSWORD"
|
- docker login -u springbuildmaster -p "$DOCKERHUB_PASSWORD"
|
||||||
script:
|
script:
|
||||||
- ./mvnw spring-boot:build-image -D spring-boot.build-image.imageName=springio/petclinic && docker push springio/petclinic
|
- ./mvnw spring-boot:build-image -D spring-boot.build-image.imageName=springio/petclinic && [ "${TRAVIS_BRANCH}" = "main" ] && docker push springio/petclinic
|
||||||
|
|
Loading…
Reference in a new issue