--- name: Build all images on: workflow_dispatch: inputs: debug: description: "run build-image with --debug" default: false type: boolean # push: # branches: [ $default-branch, imagefactory ] # pull_request: # branches: [ $default-branch ] # schedule: # - cron: "0 0 * * 0" jobs: build: strategy: matrix: architecture: - x64 - arm64 - s390x - ppc64le version: - major: 8 minor: 6 - major: 9 minor: 0 type: - name: Container variant: Base - name: Container variant: Minimal - name: Container variant: UBI - name: GenericCloud - name: EC2 - name: Azure - name: OCP exclude: - architecture: s390x version: 8 - architecture: ppc64le version: 8 runs-on: - self-hosted - ${{ matrix.architecture }} steps: - name: Build image using empanadas env: IMAGE: ghcr.io/rocky-linux/empanadas-imagefactory:latest LIBVIRT_DEFAULT_URI: run: | export VARIANT_ARGS="$(test -z '${{ matrix.type.variant }}' && '' || '--variant ${{ matrix.type.variant }}')" export CMD="build-image --version ${{ matrix.version.major }} --type ${{ matrix.type.name }} ${VARIANT_ARGS}" sudo podman run --rm --privileged --security-opt label=disable --device fuse \ -v /var/run/libvirt:/var/run/libvirt:rw -v /var/lib/imagefactory:/var/lib/imagefactory:rw \ $IMAGE $CMD