mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +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
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
# - name: Build and Push Docker Image
|
||||||
uses: mr-smithers-excellent/docker-build-push@v5
|
# uses: mr-smithers-excellent/docker-build-push@v5
|
||||||
with:
|
# with:
|
||||||
image: eugenedemo1/pet-clinic-maven-test
|
# image: eugenedemo1/pet-clinic-maven-test
|
||||||
# tags: v1, latest
|
# tags: v1, latest
|
||||||
registry: docker.io
|
# registry: docker.io
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
# 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