From 6b827fa703006f430f89915b4c676b2eeb8e87b1 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 8 Aug 2023 15:46:32 +0200 Subject: [PATCH] packit: Build PRs into default packit COPRs Building all PRs of all container projects into the same COPR does not properly isolate PRs from each other. To avoid that, change the copr_build configuration to use the packit default COPRs, which are specific to the particular PR, and disappear after a few weeks. Depending projects should only run against what landed in skopeo/main i.e. the podman-next COPR. Signed-off-by: Martin Pitt --- .packit.yaml | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index c4570b91..86ddc7a4 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -6,29 +6,36 @@ # supported Fedora and CentOS Stream arches. # They do not block the current Cirrus-based workflow. -# Build targets can be found at: -# https://copr.fedorainfracloud.org/coprs/rhcontainerbot/packit-builds/ -# and -# https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/ - specfile_path: rpm/skopeo.spec upstream_tag_template: v{version} -jobs: - - &copr - job: copr_build - trigger: pull_request - owner: rhcontainerbot - project: packit-builds - enable_net: true - srpm_build_deps: - - make +srpm_build_deps: + - make - - <<: *copr - # Run on commit to main branch +jobs: + - job: copr_build + trigger: pull_request + enable_net: true + # keep in sync with https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next + targets: + - fedora-all-x86_64 + - fedora-all-aarch64 + - fedora-eln-x86_64 + - fedora-all-aarch64 + - centos-stream+epel-next-8-x86_64 + - centos-stream+epel-next-8-aarch64 + - centos-stream+epel-next-9-x86_64 + - centos-stream+epel-next-9-aarch64 + additional_repos: + - "copr://rhcontainerbot/podman-next" + + # Run on commit to main branch + - job: copr_build trigger: commit branch: main + owner: rhcontainerbot project: podman-next + enable_net: true - job: propose_downstream trigger: release