From bf33b9291ea48be60ca88b5d7fd37d4a6d610ece Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 31 May 2024 10:16:55 -0400 Subject: [PATCH] [skip-ci] Packit: enable c10s downstream sync This commit will enable downstream syncing to CentOS Stream 10. The centos maintainer will need to manually run `packit propose-downstream` and `centpkg build` until better centos integration is in place. This commit also builds both rhel9 and centos9 copr rpms so we can check for things like differences in golang compiler. Signed-off-by: Lokesh Mandvekar --- .packit.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index ae0e7cc3011..b465fec67d0 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -2,45 +2,88 @@ # See the documentation for more information: # https://packit.dev/docs/configuration/ -specfile_path: rpm/buildah.spec +downstream_package_name: buildah upstream_tag_template: v{version} +packages: + buildah-fedora: + pkg_tool: fedpkg + specfile_path: rpm/buildah.spec + buildah-centos: + pkg_tool: centpkg + specfile_path: rpm/buildah.spec + buildah-rhel: + specfile_path: rpm/buildah.spec + srpm_build_deps: - make jobs: - job: copr_build trigger: pull_request - notifications: + packages: [buildah-fedora] + notifications: &copr_build_failure_notification failure_comment: message: "Ephemeral COPR build failed. @containers/packit-build please check." + targets: + fedora-all-x86_64: {} + fedora-all-aarch64: {} + fedora-eln-x86_64: + additional_repos: + - "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/" + fedora-eln-aarch64: + additional_repos: + - "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/" enable_net: true + + - job: copr_build + trigger: pull_request + packages: [buildah-centos] + notifications: *copr_build_failure_notification + targets: + - centos-stream-9-x86_64 + - centos-stream-9-aarch64 + - centos-stream-10-x86_64 + - centos-stream-10-aarch64 + enable_net: true + + - job: copr_build + trigger: pull_request + packages: [buildah-rhel] + notifications: *copr_build_failure_notification targets: - - fedora-all-x86_64 - - fedora-all-aarch64 - - fedora-eln-x86_64 - - fedora-eln-aarch64 - epel-9-x86_64 - epel-9-aarch64 - additional_repos: - - "copr://rhcontainerbot/podman-next" + enable_net: true # Run on commit to main branch - job: copr_build trigger: commit + packages: [buildah-fedora] notifications: failure_comment: message: "podman-next COPR build failed. @containers/packit-build please check." + branch: main owner: rhcontainerbot project: podman-next enable_net: true + # Sync to Fedora - job: propose_downstream trigger: release + packages: [buildah-fedora] update_release: false dist_git_branches: - fedora-all + # Sync to CentOS Stream + - job: propose_downstream + trigger: release + packages: [buildah-centos] + update_release: false + dist_git_branches: + - c10s + - job: koji_build trigger: commit dist_git_branches: