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: tree
    build: name:build
    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:
                - dnf
        options:
          gpgkeys:
            mpp-eval: gpgkeys
          exclude:
            docs: true
      - type: org.osbuild.yum.repos
        options:
          filename: google-cloud.repo
          repos:
            - id: google-compute-engine
              name: Google Compute Engine
              baseurl:
                - https://www.example.org/google-compute-engine
              enabled: true
              gpgcheck: true
              repo_gpgcheck: false
              gpgkey:
                - https://packages.cloud.google.com/yum/doc/yum-key.gpg
                - https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
            - id: google-cloud-sdk
              name: Google Compute SDK
              baseurl:
                - https://www.example.org/google-cloud-sdk
              enabled: true
              gpgcheck: true
              repo_gpgcheck: false
              gpgkey:
                - https://packages.cloud.google.com/yum/doc/yum-key.gpg
                - https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
      - type: org.osbuild.yum.repos
        options:
          filename: my-cool-repo.repo
          repos:
            - id: cOOlest.id-ever_invented:42
              metalink: https://www.example.org/cool-repo
            - id: cOOlest.id-ever_invented:43
              mirrorlist: https://www.example.org/cool-repo
              cost: 123
              enabled: false
              gpgkey:
                - secretkey
              module_hotfixes: true
              name: Very cool repo
              priority: 42
              gpgcheck: true
              repo_gpgcheck: true
              sslverify: true
