From 4f2381304d17350683c01c00e725503e3b185202 Mon Sep 17 00:00:00 2001 From: Alex Ni <12097569+nialexsan@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:22:09 -0500 Subject: [PATCH] stable cadence prod --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e13a1a2..ea232b9c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -108,3 +108,26 @@ jobs: with: service: ${{ vars.GCP_SERVICE }} image: ${{ env.DOCKER_IMAGE_URL }} + + deploy-stable-cadence-production: + needs: [build] + environment: stable-cadence-production + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Google auth + id: auth + uses: google-github-actions/auth@v2 + with: + token_format: 'access_token' + workload_identity_provider: ${{ vars.DEPLOYER_GCP_WORKLOAD_IDENTITY_PROVIDER }} + service_account: ${{ vars.DEPLOYER_SERVICE_ACCOUNT }} + - name: Deploy to Cloud Run + uses: google-github-actions/deploy-cloudrun@v1 + with: + service: ${{ vars.GCP_SERVICE }} + image: ${{ env.DOCKER_IMAGE_URL }}