Skip to content

test using matrix

test using matrix #6

name: Nightly test using matrix
on:
pull_request:
paths:
- ".github/workflows/*"
jobs:
vars:
runs-on: ubuntu-latest
outputs:
REGISTRY_NAME: "k8scc01covidacr.azurecr.io"
DEV_REGISTRY_NAME: "k8scc01covidacrdev.azurecr.io"
branch-name: "master"
steps:
- uses: actions/checkout@v4
- name: Get branch name
id: getBranch
run: |
chmod +x ./make_helpers/get_branch_name.sh
BRANCH_NAME=$(./make_helpers/get_branch_name.sh)
echo "branch-name=$BRANCH_NAME"
echo "branch-name=$BRANCH_NAME" >> $GITHUB_OUTPUT
- name: Set up environment
run: echo "Environment has been set up."
nightly-tests:
needs: vars
strategy:
matrix:
image:
- jupyterlab-cpu
- jupyterlab-tensorflow
- rstudio
- sas
- remote-desktop
uses: ./.github/workflows/docker-pull-test.yaml
with:
image: ${{ matrix.image }}
registry-name: "${{ needs.vars.outputs.REGISTRY_NAME }}"
branch-name: "${{ needs.vars.outputs.branch-name }}"
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
CVE_ALLOWLIST: ${{ secrets.CVE_ALLOWLIST}}