]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: enable testing on arm64 using the Debian container
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 13 Apr 2024 22:18:48 +0000 (18:18 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 19 Apr 2024 16:42:04 +0000 (12:42 -0400)
.github/workflows/container.yml

index 5ae91b4ca3ada0e5c386efd03674e1a42f784bc8..4e3a2a9553f722c45621db7201e63610448f45de 100644 (file)
@@ -29,15 +29,19 @@ jobs:
             fail-fast: false
             matrix:
                 config:
-                    - { dockerfile: 'Dockerfile-Fedora-latest',     tag: 'fedora:latest' }
-                    - { dockerfile: 'Dockerfile-OpenSuse-latest',   tag: 'opensuse:latest' }
-                    - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest' }
-                    - { dockerfile: 'Dockerfile-Debian',            tag: 'debian:latest' }
-                    - { dockerfile: 'Dockerfile-Gentoo',            tag: 'gentoo:latest' }
-                    - { dockerfile: 'Dockerfile-Ubuntu',            tag: 'ubuntu:latest' }
-                    - { dockerfile: 'Dockerfile-alpine',            tag: 'alpine:latest' }
-                    - { dockerfile: 'Dockerfile-Void',              tag: 'void:latest' }
+                    - { dockerfile: 'Dockerfile-Fedora-latest',     tag: 'fedora:latest',     platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-OpenSuse-latest',   tag: 'opensuse:latest',   platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest',       platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-Debian',            tag: 'debian:latest',     platform: 'linux/arm64,linux/amd64' }
+                    - { dockerfile: 'Dockerfile-Gentoo',            tag: 'gentoo:latest',     platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-Ubuntu',            tag: 'ubuntu:latest',     platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-alpine',            tag: 'alpine:latest',     platform: 'linux/amd64' }
+                    - { dockerfile: 'Dockerfile-Void',              tag: 'void:latest',       platform: 'linux/amd64' }
         steps:
+            -   name: Set up QEMU
+                uses: docker/setup-qemu-action@v3
+                with:
+                    platforms: ${{ matrix.config.platform }}
             -   name: Check out the repo
                 uses: actions/checkout@v4
             -   name: Set up Docker Buildx
@@ -56,3 +60,4 @@ jobs:
                     file: test/container/${{ matrix.config.dockerfile }}
                     tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}
                     push: ${{ github.event_name == 'push' ||  github.event_name == 'schedule' }}
+                    platforms: ${{ matrix.config.platform }}