Skip to content

Commit

Permalink
the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
freddieptf committed Nov 18, 2024
1 parent e680529 commit 4063227
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
deploy:
setup:
runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
Expand Down Expand Up @@ -44,16 +44,25 @@ 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
role-to-assume: "arn:aws:iam::${{vars.AWS_ACCOUNT_NUMBER}}:role/eks-${{vars.AWS_USER}}"

- 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

0 comments on commit 4063227

Please sign in to comment.