]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: add alpine:edge to increase coverage
authorJo Zzsi <jozzsicsataban@gmail.com>
Wed, 23 Oct 2024 15:44:20 +0000 (11:44 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Wed, 23 Oct 2024 16:00:17 +0000 (12:00 -0400)
.github/workflows/container-extra.yml
test/container/Dockerfile-alpine

index b2e0178360608738652a9d29ae596c365d686d08..5bb8396b0974d815407283364f43aa4e0297de8c 100644 (file)
@@ -36,6 +36,7 @@ jobs:
                     - { dockerfile: 'Dockerfile-debian', tag: 'debian:sid',     platform: 'linux/amd64' }
                     - { dockerfile: 'Dockerfile-fedora', tag: 'fedora:rawhide', platform: 'linux/amd64' }
                     - { dockerfile: 'Dockerfile-ubuntu', tag: 'ubuntu:rolling', platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-alpine', tag: 'alpine:edge',    platform: 'linux/amd64' }
                     - { dockerfile: 'Dockerfile-gentoo', tag: 'gentoo:latest',  platform: 'linux/amd64' }
         steps:
             -   name: Check out the repo
index 93701989171ea5d07d23348e9520a0b8fb454f20..3135c30d93e9910ae351dc6bd23bfcff0cf7ac78 100644 (file)
@@ -1,4 +1,5 @@
-FROM docker.io/alpine:latest
+ARG DISTRIBUTION=alpine
+FROM docker.io/${DISTRIBUTION}
 
 # prefer running tests with clang
 ENV CC=clang
@@ -79,4 +80,4 @@ RUN apk add --no-cache \
 # see https://github.com/eudev-project/eudev/pull/246
 # needed to run RAID tests
 RUN \
-  cp /usr/lib/udev/rules.d/* /lib/udev/rules.d/
+  mkdir -p /lib/udev/rules.d && cp /usr/lib/udev/rules.d/* /lib/udev/rules.d/