]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
github actions: use test container directly
authorHarald Hoyer <harald@redhat.com>
Thu, 12 Mar 2020 11:50:08 +0000 (12:50 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 12 Mar 2020 12:21:42 +0000 (13:21 +0100)
.github/workflows/fedora-30.yml
.github/workflows/fedora-31.yml

index 345ed0d4dc4e73c13e6eb73ad3f288f88d1ea04a..1a3d3e8d29f02822cca5aa5cf1eb94bdc252810e 100644 (file)
@@ -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:
           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 }}
index 20ad62c2f0686a24a8c842b8aba6183d3e9bc07e..aa829df2f450c302b70b473752debb827ec05be3 100644 (file)
@@ -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:
           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 }}