version: '2'
pipelines:
  - mpp-import-pipelines:
      path: ../manifests/fedora-vars.ipp.yaml
  - mpp-import-pipeline:
      path: ../manifests/fedora-build-v2.ipp.yaml
      id: build
    runner:
      mpp-format-string: org.osbuild.fedora{release}
  - name: image
    build: name:build
    stages:
      - type: org.osbuild.truncate
        options:
          filename: image.raw
          size: '104857600'
  - name: vmdk
    build: name:build
    stages:
      - type: org.osbuild.qemu
        inputs:
          image:
            type: org.osbuild.files
            origin: org.osbuild.pipeline
            references:
              name:image:
                file: image.raw
        options:
          filename: image.vmdk
          format:
            type: vmdk
            subformat: streamOptimized
      - type: org.osbuild.ovf
        options:
          vmdk: image.vmdk
