Skip to content

Commit

Permalink
CI: use matrix build to test differnt container OSs
Browse files Browse the repository at this point in the history
fixes #51
  • Loading branch information
benibr committed Apr 8, 2024
1 parent 113e549 commit d95f1aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ on:
workflow_dispatch:

jobs:
defaults:
build-run-test:
runs-on: ubuntu-latest
strategy:
matrix:
container_os: [centos7, rocky8, rocky9]
environment_profile: [development]
steps:
- name: Check out repository contents
uses: actions/checkout@v3
Expand All @@ -42,6 +46,9 @@ jobs:
make test-doc
- name: Build images
run: |
ln -s Dockerfile.${{ matrix.container_os }} Dockerfile
ln -s docker-compose_${{ matrix.environment_profile }}.yml docker-compose.yml
ln -s ${{ matrix.environment_profile }}.env .env
make init
echo "# NOTE: use absolute paths to current dir to get docker bind mounts to work" > ci.env
echo "DOCKER_MIGRID_ROOT=$PWD" >> ci.env
Expand Down

0 comments on commit d95f1aa

Please sign in to comment.