mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update maven-publish.yml
This commit is contained in:
parent
52f2bd6390
commit
9526d50425
1 changed files with 24 additions and 24 deletions
48
.github/workflows/maven-publish.yml
vendored
48
.github/workflows/maven-publish.yml
vendored
|
@ -38,31 +38,31 @@ jobs:
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Setup GCP Service Account
|
- name: Setup GCP Service Account
|
||||||
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||||
with:
|
with:
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
|
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
|
||||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||||
export_default_credentials: true
|
export_default_credentials: true
|
||||||
|
|
||||||
- name: Configure Docker
|
- name: Configure Docker
|
||||||
run: |
|
run: |
|
||||||
gcloud auth configure-docker
|
gcloud auth configure-docker
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest .
|
docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest .
|
||||||
|
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest
|
docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:latest
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
gcloud run deploy helloworld \
|
gcloud run deploy helloworld \
|
||||||
--region europe-west1 \
|
--region europe-west1 \
|
||||||
--image gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld \
|
--image gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld \
|
||||||
--platform managed \
|
--platform managed \
|
||||||
--allow-unauthenticated \
|
--allow-unauthenticated \
|
||||||
--project ${{ secrets.GCP_PROJECT_ID }}
|
--project ${{ secrets.GCP_PROJECT_ID }}
|
||||||
|
|
Loading…
Reference in a new issue