Browse Source

github actions: use test container directly

master
Harald Hoyer 4 years ago committed by Harald Hoyer
parent
commit
d5bfaf58ab
  1. 6
      .github/workflows/fedora-30.yml
  2. 6
      .github/workflows/fedora-31.yml

6
.github/workflows/fedora-30.yml

@ -13,7 +13,9 @@ on: @@ -13,7 +13,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest
#container: quay.io/haraldh/dracut-fedora:30
container:
image: quay.io/haraldh/dracut-fedora:30
options: "--privileged"
timeout-minutes: 45
strategy:
matrix:
@ -45,4 +47,4 @@ jobs: @@ -45,4 +47,4 @@ jobs:
fetch-depth: 0

- name: "TEST-${{ matrix.test }}"
run: docker run --privileged -v $(pwd)/:/dracut quay.io/haraldh/dracut-fedora:30 /dracut/fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}

6
.github/workflows/fedora-31.yml

@ -13,7 +13,9 @@ on: @@ -13,7 +13,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest
#container: quay.io/haraldh/dracut-fedora:30
container:
image: quay.io/haraldh/dracut-fedora:31
options: "--privileged"
timeout-minutes: 45
strategy:
matrix:
@ -51,4 +53,4 @@ jobs: @@ -51,4 +53,4 @@ jobs:
fetch-depth: 0

- name: "TEST-${{ matrix.test }}"
run: docker run --privileged -v $(pwd)/:/dracut quay.io/haraldh/dracut-fedora:31 /dracut/fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}

Loading…
Cancel
Save