Skip to content

Commit

Permalink
fix(workflows): replace deploy-cloudrun with gcloud
Browse files Browse the repository at this point in the history
- deploy-cloudrun will deploy new services
- Try using gcloud without region and stuff to see if it updates existing services
  • Loading branch information
MrOrz authored Oct 2, 2023
1 parent b69199b commit 53cf71e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ jobs:
RELEASE_TAG: ${{ startsWith(github.ref, 'refs/tags/release') && 'latest' || 'dev' }}
CLOUDRUN_SERVICE_NAME: ${{ startsWith(github.ref, 'refs/tags/release') && 'site' || 'site-staging' }}
steps:
- uses: 'google-github-actions/auth@v1'
- uses: google-github-actions/auth@v1
with:
workload_identity_provider: ${{ secrets.GC_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GC_SERVICE_ACCOUNT }}
- uses: 'google-github-actions/deploy-cloudrun@v1'
with:
service: ${{ env.CLOUDRUN_SERVICE_NAME }}-${{matrix.locale}}
image: cofacts/rumors-site:${{ env.RELEASE_TAG }}-${{ matrix.locale }}
- uses: google-github-actions/setup-gcloud@v1
- run: gcloud run deploy ${{ env.CLOUDRUN_SERVICE_NAME }}-${{matrix.locale}} --image cofacts/rumors-site:${{ env.RELEASE_TAG }}-${{ matrix.locale }}

0 comments on commit 53cf71e

Please sign in to comment.