fail-fast: false
matrix:
architecture:
- - {platform: 'linux/amd64', runner: 'ubuntu-24.04'}
- - {platform: 'linux/arm64', runner: 'ubuntu-24.04-arm'}
+ - {platform: 'linux/amd64', runner: 'ubuntu-24.04', tag: 'amd'}
+ - {platform: 'linux/arm64', runner: 'ubuntu-24.04-arm', tag: 'arm'}
config:
- {dockerfile: 'Dockerfile-debian', tag: 'debian:latest'}
- {dockerfile: 'Dockerfile-fedora', tag: 'fedora:latest'}
uses: docker/build-push-action@v6
with:
file: test/container/${{ matrix.config.dockerfile }}
- tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}
+ tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}-${{ matrix.architecture.tag }}
push: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
platforms: ${{ matrix.architecture.platform }}
test:
- "10"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm'
steps:
- name: "Checkout Repository"
- "80"
- "81"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm'
steps:
- name: "Checkout Repository"
- "41"
- "42"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm --privileged'
steps:
- name: "Checkout Repository"
test:
- "82"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm'
steps:
- name: "Checkout Repository"
fail-fast: false
matrix:
container:
- - debian-arm64
- - fedora-arm64
+ - debian
+ - fedora
test:
- "80"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-arm
options: '--privileged'
steps:
- name: "Checkout Repository"
- container: "opensuse"
network: "network-legacy"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm'
steps:
- name: "Checkout Repository"
- container: "opensuse"
network: "network-legacy"
container:
- image: ghcr.io/dracut-ng/${{ matrix.container }}
+ image: ghcr.io/dracut-ng/${{ matrix.container }}:latest-amd
options: '--device=/dev/kvm'
steps:
- name: "Checkout Repository"