Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable downstream jobs, simplify packit config #261

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 50 additions & 18 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,32 +11,65 @@ 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
- epel-10

srpm_build_deps:
- hatch

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

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

# Build commits merged to main (copr latest)
- job: copr_build
trigger: commit
branch: main
targets:
- fedora-all
- epel-9
- epel-10
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
- epel-10
Loading