96fcfca
# we have the specfile in the root of our repository
96fcfca
specfile_path: osbuild.spec
96fcfca
# when doing an update in Fedora, we want to copy the spec file and the config file
96fcfca
synced_files:
96fcfca
  - osbuild.spec
96fcfca
  - .packit.yaml
96fcfca
upstream_project_name: osbuild
96fcfca
downstream_package_name: osbuild
96fcfca
jobs:
96fcfca
  # trigger a COPR build for push events in open PRs
96fcfca
  - job: copr_build
96fcfca
    trigger: pull_request
96fcfca
    metadata:
96fcfca
      targets:
96fcfca
      - fedora-30-x86_64
96fcfca
      - fedora-rawhide-x86_64
96fcfca
  # this is triggered by a commit on src.fedoraproject.org, not Github!
96fcfca
  # e.g. in case of mass rebuild or automated changes of spec file (e.g. Python packagers)
96fcfca
  # it will create a PR on Github with changes in synchronized files
96fcfca
  - job: sync_from_downstream
96fcfca
    trigger: commit
96fcfca
  # create a PR on src.fedoraproject.org containing updated spec file and new sources (tarball)
96fcfca
  # triggered by Github release
96fcfca
  - job: propose_downstream
96fcfca
    trigger: release
96fcfca
    metadata:
96fcfca
      dist-git-branch: master
96fcfca
  # The same as above only for f30
96fcfca
  - job: propose_downstream
96fcfca
    trigger: release
96fcfca
    metadata:
96fcfca
      dist-git-branch: f30