From b870c404a5d3656a0523c70a6c5fcbe2f50a682a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Thu, 19 Dec 2024 10:37:01 +0100 Subject: [PATCH] Add initial Packit configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For now, Packit should trigger COPR buils for PRs and merges to the `main` branch. Signed-off-by: Tomáš Hozza --- .packit.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .packit.yaml diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..bee59ad --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,60 @@ +# https://packit.dev/docs/configuration/ + +specfile_path: image-builder-cli.spec + +files_to_sync: + - image-builder-cli.spec + - .packit.yaml + +copy_upstream_release_description: true + +upstream_tag_template: v{version} + +srpm_build_deps: + - make + +actions: + get-current-version: bash -c "git describe --tags --abbrev=0 | sed 's|v||'" + post-upstream-clone: "./tools/rpm_spec_add_provides_bundle.sh" + create-archive: bash -c "make release_artifacts" + +# Handle only releases without a "dot" (e.g. v88.2), since "dot" releases should never be released to Fedora +upstream_tag_include: 'v\d+' + +jobs: +# image-builder-cli is not yet in Fedora, so we don't need to update it there +# - job: bodhi_update +# trigger: commit +# dist_git_branches: +# - fedora-branched # rawhide updates are created automatically +# - job: koji_build +# trigger: commit +# dist_git_branches: +# - fedora-all +# - job: propose_downstream +# trigger: release +# dist_git_branches: +# - fedora-all +- job: copr_build + trigger: pull_request + targets: &build_targets + - centos-stream-9-aarch64 + - centos-stream-9-s390x + - centos-stream-9-ppc64le + - centos-stream-9-x86_64 + - centos-stream-10-aarch64 + - centos-stream-10-s390x + - centos-stream-10-ppc64le + - centos-stream-10-x86_64 + - fedora-all-aarch64 + - fedora-all-s390x + - fedora-all-ppc64le + - fedora-all + - rhel-9-aarch64 + - rhel-9-x86_64 +- job: copr_build + trigger: commit + branch: main + owner: "@osbuild" # copr repo namespace + project: image-builder-cli # copr repo name so you can consume the builds + targets: *build_targets