version: '2'
pipelines:
  - name: build
    source-epoch: 1659397331
    stages:
      - type: org.osbuild.rpm
        inputs:
          packages:
            type: org.osbuild.files
            origin: org.osbuild.source
            mpp-depsolve:
              architecture: $arch
              module-platform-id: $module_platform_id
              repos:
                mpp-eval: repos
              packages:
                - binutils
                - btrfs-progs
                - cryptsetup
                - dnf
                - dosfstools
                - e2fsprogs
                - erofs-utils
                - gdisk
                - grub2-pc
                - policycoreutils
                - python3-dnf
                - python3-iniparse
                - python3-libdnf5
                - python3-toml
                - python3-yaml
                - qemu-img
                - rpm-ostree
                - systemd
                - tar
                - xfsprogs
                - xz
                - lvm2
                - selinux-policy-targeted
                - genisoimage
                - isomd5sum
                - xorriso
                - syslinux
                - skopeo
                - lorax-templates-generic
                - syslinux-nonlinux
                - squashfs-tools
                - grub2-pc-modules
                - grub2-tools
                - grub2-efi-x64
                - shim-x64
                - efibootmgr
                - grub2-tools-minimal
                - grub2-tools-extra
                - grub2-tools-efi
                - grub2-efi-x64
                - grub2-efi-x64-cdboot
                - shim-ia32
                - grub2-efi-ia32-cdboot
                - zstd
                - openscap-utils
                - podman
        options:
          gpgkeys:
            mpp-eval: gpgkeys
          exclude:
            docs: true
      # Remove when https://github.com/containers/common/pull/2265
      # has merged and is in a Fedora RPM
      - type: org.osbuild.mkdir
        options:
          paths:
            - path: /etc/containers/networks
              mode: 493
      - type: org.osbuild.selinux
        options:
          file_contexts: etc/selinux/targeted/contexts/files/file_contexts
          labels:
            /usr/bin/cp: system_u:object_r:install_exec_t:s0
            /usr/bin/tar: system_u:object_r:install_exec_t:s0
