mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

This commit adds Packit configuration files which will trigger rpm builds on copr:`rhcontainerbot/packit-builds` on every PR as well as on copr:`rhcontainerbot/podman-next` on every commit to main branch. This commit will ensure main branch is always buildable on all supported Fedora and CentOS Stream versions for aarch64 and x86_64. TODO: enable build checks for s390x and ppc64le while ensuring they don't take too long to build. The packit builds reuse `buildah.spec.rpkg` present upstream and are thus independent of Fedora / CentOS dist-git. This change will remove the need for the current webhook based triggering of rpm builds on rhcontainerbot/podman-next after commit to main. That will be instead handled by the `trigger: commit` action added in this PR. New builds will continue to get posted to the same link so users don't need to change any existing copr repo configuration. [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
31 lines
644 B
YAML
31 lines
644 B
YAML
---
|
|
# See the documentation for more information:
|
|
# https://packit.dev/docs/configuration/
|
|
|
|
# Build targets can be found at:
|
|
# https://copr.fedorainfracloud.org/coprs/rhcontainerbot/packit-builds/
|
|
|
|
specfile_path: podman.spec
|
|
|
|
jobs:
|
|
- &copr
|
|
job: copr_build
|
|
trigger: pull_request
|
|
owner: rhcontainerbot
|
|
project: packit-builds
|
|
enable_net: true
|
|
srpm_build_deps:
|
|
- make
|
|
- rpkg
|
|
actions:
|
|
post-upstream-clone:
|
|
- "rpkg spec --outdir ./"
|
|
fix-spec-file:
|
|
- "bash .packit.sh"
|
|
|
|
- <<: *copr
|
|
# Run on commit to main branch
|
|
trigger: commit
|
|
branch: main
|
|
project: podman-next
|