From 70fcd19458085f37f43c713a0cdff976fe042af6 Mon Sep 17 00:00:00 2001 From: Alex Ni <12097569+nialexsan@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:48:33 -0500 Subject: [PATCH 1/4] stable cadence deployment --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) 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 }} 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 2/4] 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 }} From f7e2757312b633c38417fdfbf6deb617c16e4891 Mon Sep 17 00:00:00 2001 From: Alex Ni <12097569+nialexsan@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:43:30 -0400 Subject: [PATCH 3/4] bump From 1a7fac3d949e9aa9be472635db6bc2bb68d75f45 Mon Sep 17 00:00:00 2001 From: Alex Ni <12097569+nialexsan@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:57:16 -0400 Subject: [PATCH 4/4] restore branch rules --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ea232b9c..e6c85b5d 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 }}