From a789f6facf51a4c19b3039cc0c6510f91ce2893d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 7 Oct 2025 15:02:55 +0200 Subject: [PATCH] ci: fix packit config Fixes: #3 --- .packit.yaml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index bc6ab00..466d20a 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,27 +1,30 @@ # See the documentation for more information: # https://packit.dev/docs/configuration/ --- + +specfile_path: resalloc-aws.spec +upstream_package_name: resalloc-aws +downstream_package_name: resalloc-aws +upstream_project_url: https://github.com/praiskup/resalloc-aws +upstream_tag_template: 'resalloc-aws-{version}' + +actions: + get-current-version: + - bash -c "git describe --match resalloc-aws-[0-9]* --abbrev=0 HEAD | egrep -o [0-9]+\.[0-9]+" + create-archive: + - bash -c "tito build --tgz --test -o ." + - bash -c "ls -1t *.tar.gz | head -n 1" + +srpm_build_deps: + - tito + jobs: - &copr job: copr_build trigger: pull_request - identifier: mock - metadata: - targets: - - fedora-all-x86_64 - - epel-all-x86_64 - actions: - create-archive: - - bash -c "tito build --tgz --test -o ." - - bash -c "ls -1t *.tar.gz | head -n 1" - get-current-version: - - bash -c "git describe --match resalloc-aws-[0-9]* --abbrev=0 HEAD | egrep -o [0-9]+\.[0-9]+" - specfile_path: resalloc-aws.spec - srpm_build_deps: - - tito - upstream_package_name: resalloc-aws - downstream_package_name: resalloc-aws - upstream_tag_template: 'resalloc-aws-{version}' + targets: + - fedora-all-x86_64 + - epel-all-x86_64 - <<: *copr trigger: commit