mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 23:35:50 +00:00
Update maven-publish.yml
This commit is contained in:
parent
1d08994f5e
commit
b980214363
1 changed files with 17 additions and 7 deletions
24
.github/workflows/maven-publish.yml
vendored
24
.github/workflows/maven-publish.yml
vendored
|
@ -29,11 +29,21 @@ jobs:
|
|||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: mr-smithers-excellent/docker-build-push@v5
|
||||
with:
|
||||
image: eugenedemo1/pet-clinic-maven-test
|
||||
# - name: Build and Push Docker Image
|
||||
# uses: mr-smithers-excellent/docker-build-push@v5
|
||||
# with:
|
||||
# image: eugenedemo1/pet-clinic-maven-test
|
||||
# tags: v1, latest
|
||||
registry: docker.io
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
# registry: docker.io
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: raccoondev/push-docker-gcr
|
||||
with:
|
||||
gcr_host: eu.gcr.io
|
||||
image_name: git-ops-automation/pet-clinic-test
|
||||
image_tag: latest
|
||||
env:
|
||||
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
|
||||
GOOGLE_PROJECT_ID: ${{ secrets.GOOGLE_PROJECT_ID }}
|
||||
|
|
Loading…
Reference in a new issue