# build into f32-coreos-continuous on every commit to master
jobs:
    - job: production_build
      trigger: commit
      metadata:
          branch: master
          targets: f32-coreos-continuous
specfile_path: ostree.spec
actions:
    # https://packit.dev/faq/#how-can-i-download-rpm-spec-file-if-it-is-not-part-of-upstream-repository
    post-upstream-clone: "wget https://src.fedoraproject.org/rpms/ostree/raw/master/f/ostree.spec"

# build into f32-coreos-continuous on every commit to master
jobs:
    - job: production_build
      trigger: commit
      metadata:
          branch: master
          targets: f32-coreos-continuous
specfile_path: ostree.spec
actions:
    # https://packit.dev/faq/#how-can-i-download-rpm-spec-file-if-it-is-not-part-of-upstream-repository
    post-upstream-clone:
        - "wget https://src.fedoraproject.org/rpms/ostree/raw/master/f/ostree.spec"
        # we don't want any downstream patches
        - "sed -ie 's/^Patch/# Patch/g' ostree.spec"

Make Packit ignore downstream patches
ci: Make Packit ignore downstream patches

We don't really carry "Fedora-only" patches in dist-git. So we want to
nuke all the patches which exist there.

Follow-up to #2210.
