mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
This commit lets packit trigger builds on `rhcontainerbot/podman-next` copr after a commit to the main branch instead of the current github webhook trigger. The builds triggered via packit also provide more information in their `version-release`: Current webhook triggered build: `101:0.0.git.2460.cfd6f20f-1`. Ref: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/package/skopeo/ Packit triggered build for another package (netavark) on podman-next: 101:1.6.0~dev-1.20230321121647013339.main.61.gd6f0352 Ref: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/package/netavark/ The packit triggered build correctly shows the upstream branch name, commit id, timestamp as well as the upstream version. Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
35 lines
821 B
YAML
35 lines
821 B
YAML
---
|
|
# See the documentation for more information:
|
|
# https://packit.dev/docs/configuration/
|
|
|
|
# NOTE: The Packit copr_build tasks help to check if every commit builds on
|
|
# 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/
|
|
|
|
specfile_path: skopeo.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
|