From 406322733f4c2567bca7e8bf5229cbdae0e3b364 Mon Sep 17 00:00:00 2001 From: freddieptf Date: Mon, 18 Nov 2024 18:42:54 +0300 Subject: [PATCH] the matrix --- .github/workflows/deploy.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b17e5289..9f4d0201 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: jobs: - deploy: + setup: runs-on: ubuntu-latest # if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: @@ -44,7 +44,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ${{vars.AWS_REGION}} - aws-access-key-id: ${{ steps.auth.outputs.AWS_ACCESS_KEY_ID }} + aws-access-key-id: ${{ steps.auth.outputs.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ steps.auth.outputs.AWS_SECRET_ACCESS_KEY }} aws-session-token: ${{ steps.auth.outputs.AWS_SESSION_TOKEN }} role-skip-session-tagging: true @@ -52,8 +52,17 @@ jobs: - uses: actions/checkout@v2 - - name: Helm upgrade + - name: Update kubeconfig run: | aws eks update-kubeconfig --name ${{vars.CLUSTER}} --region ${{vars.AWS_REGION}} helm repo add medic https://docs.communityhealthtoolkit.org/helm-charts - helm upgrade --namespace ${{vars.NAMESPACE}} --values scripts/deploy/values/users-chis-civ.yaml users-chis-civ medic/cht-user-management + + deploy: + strategy: + matrix: + project: [users-chis-civ] + steps: + - name: Upgrade ${{ matrix.project }} + with: + project: ${{ matrix.project }} + run: helm upgrade --namespace ${{vars.NAMESPACE}} --values scripts/deploy/values/${{project}}.yaml ${{project}} medic/cht-user-management