From 97bca3923f42293aba249c37d8cfee2d693be222 Mon Sep 17 00:00:00 2001 From: CharlieC3 <2747302+CharlieC3@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:01:22 -0400 Subject: [PATCH] ci/split-prd-deploys --- .github/workflows/ci.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a1066d6b..57dcb6b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -480,7 +480,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - k8s-env: [mainnet,testnet] + include: + - k8s-env: mainnet + k8s-subenv: blue + - k8s-env: mainnet + k8s-subenv: green + - k8s-env: testnet + k8s-subenv: blue needs: - build-publish - deploy-staging @@ -489,7 +495,7 @@ jobs: env: DEPLOY_ENV: prd environment: - name: Production-${{ matrix.k8s-env }} + name: Production-${{ matrix.k8s-env }}-${{ matrix.k8s-subenv }} url: https://platform.hiro.so/ steps: - name: Checkout actions repo @@ -499,9 +505,10 @@ jobs: token: ${{ secrets.GH_TOKEN }} repository: ${{ secrets.DEVOPS_ACTIONS_REPO }} - - name: Deploy Chainhook build to Prd ${{ matrix.k8s-env }} + - name: Deploy Chainhook build to Prd ${{ matrix.k8s-env }}-${{ matrix.k8s-subenv }} uses: ./actions/deploy with: docker_image_tag_or_digest: ${{ needs.build-publish.outputs.docker_image_digest }} file_pattern: manifests/chainhooks/${{ matrix.k8s-env }}/chainhook-node/${{ env.DEPLOY_ENV }}/base/kustomization.yaml + subenv: ${{ matrix.k8s-subenv }} gh_token: ${{ secrets.GH_TOKEN }}