Skip to content

Commit

Permalink
Enable downstream jobs, simplify packit config
Browse files Browse the repository at this point in the history
Turn on `propose_downstream` jobs for released `fmf`, enable koji
builds and bodhi updates. Clean up and simplify the config a bit.
  • Loading branch information
psss committed Dec 2, 2024
1 parent b851bd0 commit 3021031
Showing 1 changed file with 48 additions and 15 deletions.
63 changes: 48 additions & 15 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
specfile_path: fmf.spec
synced_files:
- fmf.spec
files_to_sync: [fmf.spec]

upstream_package_name: fmf
downstream_package_name: fmf
Expand All @@ -12,29 +11,63 @@ actions:
- "hatch build -t sdist"
- "sh -c 'echo dist/fmf-*.tar.gz'"

# Common definitions
_:
# Copr setup
- &copr
list_on_homepage: True
preserve_project: True
owner: "@teemtee"

# Supported targets
- targets: &targets
- fedora-all
- epel-9

srpm_build_deps:
- hatch

jobs:
# Build pull requests
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- epel-9
targets: *targets

# Test pull requests
- job: tests
trigger: pull_request
targets:
- fedora-all
- epel-9
targets: *targets

# Build commits merged to main (copr latest)
- job: copr_build
trigger: commit
branch: main
targets:
- fedora-all
- epel-9
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
project: fmf
targets: *targets
<<: *copr
project: latest

# Build release (copr stable)
- job: copr_build
trigger: release
targets: *targets
<<: *copr
project: stable

# Propose downstream pull requests
- job: propose_downstream
trigger: release
dist_git_branches: *targets

# Build in Koji
- job: koji_build
trigger: commit
allowed_pr_authors: [ "packit", "all_committers" ]
allowed_committers: [ "packit", "all_committers" ]
dist_git_branches: *targets

# Create bodhi updates
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9

0 comments on commit 3021031

Please sign in to comment.