diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8d1ef649..4e13a1a2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,8 +2,8 @@ name: "Deploy to Cloud Run" on: push: - branches: - - v2 + # branches: + # - v2 env: DOCKER_IMAGE_URL: ${{ vars.GCP_DOCKER_IMAGE_URL }}:${{ github.sha }} @@ -85,3 +85,26 @@ jobs: with: service: ${{ vars.GCP_SERVICE }} image: ${{ env.DOCKER_IMAGE_URL }} + + deploy-stable-cadence-staging: + needs: [build] + environment: stable-cadence-staging + 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 }}