Skip to content

Commit

Permalink
Add centos-stream package to specfile packit.yaml
Browse files Browse the repository at this point in the history
To be able to propose-downstream using packit
follow this guide: https://gitlab.com/CentOS/Integration/packit-cbs/docs
  • Loading branch information
majamassarini committed Nov 14, 2024
1 parent 442e2a9 commit fa034b4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,32 @@ packages:
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 -m setuptools_scm

specfile-centos-stream:
upstream_package_name: specfile
downstream_package_name: python-specfile
specfile_path: &specfile_path_centos centos-stream/python-specfile.spec
files_to_sync:
- *specfile_path_centos
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
srpm_build_deps:
- python3-build
- python3-setuptools_scm
actions:
pre-sync:
- python3 plans/git_reference.py
create-archive:
- python3 -m build --sdist --outdir ./fedora/
- bash -c "ls -1t ./centos-stream/*.tar.gz | head -n 1"
get-current-version: python3 -m setuptools_scm
dist_git_base_url: https://gitlab.com # this are not taken into account by centpkg-sig!
dist_git_namespace: CentOS/Integration/packit-cbs/rpms # this are not taken into account by centpkg-sig!
#sig: Integration/packit-cbs # this are not taken into account by centpkg-sig!
pkg_tool: centpkg-sig

specfile-epel8:
upstream_package_name: specfile
downstream_package_name: python-specfile
Expand Down Expand Up @@ -171,6 +197,11 @@ jobs:
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- job: propose_downstream
trigger: release
packages: [specfile-centos-stream]
dist_git_branches:
- c9-sig-integration

- job: pull_from_upstream
trigger: release
Expand All @@ -185,6 +216,11 @@ jobs:
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- job: pull_from_upstream
trigger: release
packages: [specfile-centos-stream]
dist_git_branches:
- c9-sig-integration

- job: koji_build
trigger: commit
Expand All @@ -204,6 +240,13 @@ jobs:
allowed_pr_authors: ["packit-stg", "packit"]
dist_git_branches:
- epel-8
- job: koji_build
trigger: commit
packages: [specfile-centos-stream]
packit_instances: ["stg"]
allowed_pr_authors: ["packit-stg", "packit"]
dist_git_branches:
- c9-sig-integration

- job: bodhi_update
trigger: commit
Expand Down

0 comments on commit fa034b4

Please sign in to comment.