1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
name: QEMU
permissions:
contents: read
on:
workflow_dispatch:
inputs:
os:
description: 'OS'
required: true
default: 'fedora'
type: choice
options:
- alma8
- alma9
- debian
- fedora
- ubuntu
arch:
description: 'Architecture'
required: true
default: 's390x'
type: choice
options:
- 386
- amd64
- arm
- arm64
- ppc64le
- s390x
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.os }}-${{ inputs.arch }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
DOCKER: podman
jobs:
buildx:
name: QEMU (${{ inputs.os }}-${{ inputs.arch }})
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup QEMU for cross-building images
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Cross-build container with docker/podman buildx
run: cd docker && ./xrd-docker buildx ${{ inputs.os }} ${{ inputs.arch }}
|