chore: update coder Cloud Run deployment (#189)

This commit is contained in:
Jonathan Yu
2022-02-07 16:18:52 -08:00
committed by GitHub
parent a2c0db7339
commit 78510677db

View File

@ -187,7 +187,7 @@ jobs:
deploy:
name: "deploy"
runs-on: ubuntu-latest
#if: github.event_name == 'pull_request'
if: github.event_name != 'pull_request'
permissions:
contents: read
id-token: write
@ -198,7 +198,7 @@ jobs:
uses: google-github-actions/auth@v0
with:
workload_identity_provider: projects/477254869654/locations/global/workloadIdentityPools/github/providers/github
service_account: github@coder-ci.iam.gserviceaccount.com
service_account: github-coder@coder-ci.iam.gserviceaccount.com
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
@ -221,6 +221,9 @@ jobs:
- run: docker push us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest
- name: Update coder service
run: gcloud run services update coder --image us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest --project coder-blacktriangle-dev --region us-central1
test-js:
name: "test/js"
runs-on: ubuntu-latest