aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker-builds-checks.yml
blob: c2f85869d883c48f553e9bc6fb843b6a692f9615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Docker builds and checks
on: [push]

jobs:
  check_build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        os: [ubuntu-18.04, ubuntu-20.04, ubuntu-latest, centos7, centos8, fedora33, fedora34, docs ]
    steps:
      - uses: actions/checkout@v2
      - name: Create Docker image
        run: |
          docker build --pull -t ${{ matrix.os }} -f opal-ci/Dockerfile-${{ matrix.os }} .
      - name: build skiboot and run checks
        run: |
          docker run --security-opt seccomp=unconfined --volume `pwd`:/build --tmpfs /tmp/ --rm -t ${{ matrix.os }} bash -c "./opal-ci/build-${{ matrix.os }}.sh"