Skip to content

Commit

Permalink
update GitHub Actions Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrofisr committed Jun 29, 2024
1 parent 6028141 commit b1b9ae6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: container-registry-auth
uses: docker/login-action@v3
with:
registry: us-central-docker.pkg.dev
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.gcloud-auth.outputs.access_token }}

Expand All @@ -46,7 +46,7 @@ jobs:
context: .
file: ./Dockerfile.back
push: true
tags: us-central-docker.pkg.dev/${{ github.repository }}/cloud-run-back:${{ env.IMAGE_VERSION }}
tags: us-central1-docker.pkg.dev/${{ github.repository }}/cloud-run-back:${{ env.IMAGE_VERSION }}

- name: Build and push Docker image Frontend
id: build-push-front
Expand All @@ -55,24 +55,24 @@ jobs:
context: .
file: ./Dockerfile.front
push: true
tags: us-central-docker.pkg.dev/${{ github.repository }}/cloud-run-front:${{ env.IMAGE_VERSION }}
tags: us-central1-docker.pkg.dev/${{ github.repository }}/cloud-run-front:${{ env.IMAGE_VERSION }}

- name: Deploy to Cloud Run Backend
id: deploy-cloud-run-back
uses: google-github-actions/deploy-cloudrun@v2
with:
service: cloud-run-backend-${{ env.IMAGE_VERSION }}
image: us-central-docker.pkg.dev/${{ github.repository }}/cloud-run-back:${{ env.IMAGE_VERSION }}
region: us-central
image: us-central1-docker.pkg.dev/${{ github.repository }}/cloud-run-back:${{ env.IMAGE_VERSION }}
region: us-central1
project_id: ${{ secrets.PROJECT_ID }}

- name: Deploy to Cloud Run Frontend
id: deploy-cloud-run-front
uses: google-github-actions/deploy-cloudrun@v2
with:
service: cloud-run-frontend-${{ env.IMAGE_VERSION }}
image: us-central-docker.pkg.dev/${{ github.repository }}/cloud-run-front:${{ env.IMAGE_VERSION }}
region: us-central
image: us-central1-docker.pkg.dev/${{ github.repository }}/cloud-run-front:${{ env.IMAGE_VERSION }}
region: us-central1
project_id: ${{ secrets.PROJECT_ID }}

- name: 'Use output'
Expand Down

0 comments on commit b1b9ae6

Please sign in to comment.