Skip to content

Commit

Permalink
ci: split-prd-deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Aug 22, 2024
1 parent 3c42915 commit 20cfa57
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 20cfa57

Please sign in to comment.