From e568337f38c1d6260d42eaece9588f88544abe33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Mon, 18 Mar 2024 08:08:41 +0100 Subject: [PATCH] fix: update packit configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update packit configuration to generate fedora, fedora-eln, centos and rhel packages. Add configuration to be able to propose downstream PR for Fedora dist-git. Signed-off-by: Miguel Martín --- .packit.yaml | 88 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 58 insertions(+), 30 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index cd89afdd4..4db7f4802 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,48 +1,76 @@ --- # https://packit.dev/docs/configuration/ -specfile_path: fido-device-onboard.spec +upstream_project_url: https://github.com/fdo-rs/fido-device-onboard-rs +upstream_package_name: fido-device-onboard-rs +upstream_tag_template: v{version} -files_to_sync: - - fido-device-onboard.spec - - .packit.yaml +issue_repository: https://github.com/fdo-rs/fido-device-onboard-rs -upstream_package_name: fido-device-onboard downstream_package_name: fido-device-onboard -upstream_tag_template: v{version} copy_upstream_release_description: true +specfile_path: fido-device-onboard.spec +files_to_sync: + - fido-device-onboard.spec + - .packit.yaml + srpm_build_deps: - cargo -actions: - create-archive: - - bash -c "sed -i -r \"s/^Version:.*/Version:\ ${PACKIT_PROJECT_VERSION}/\" fido-device-onboard.spec" - - bash -c "sed -i '/Source1/d ; /^# See make-vendored-tarfile.sh in upstream repo/d ;' fido-device-onboard.spec" - - bash -c "cp ./patches/0001-Revert-chore-use-git-fork-for-aws-nitro-enclaves-cos.patch ." - - bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" - - bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" - - bash -c "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar" - fix-spec-file: - - "cat fido-device-onboard.spec" - jobs: - - job: copr_build + - &fdo_copr + job: copr_build trigger: pull_request targets: - - fedora-development-aarch64 - - fedora-development - - fedora-latest - - fedora-latest-aarch64 - - job: copr_build + fedora-latest: {} + fedora-latest-aarch64: {} + fedora-latest-powerpc64le: {} + fedora-latest-s390x: {} + fedora-development: {} + fedora-development-aarch64: {} + fedora-development-powerpc64le: {} + fedora-development-s390x: {} + fedora-eln: + additional_repos: + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/ + fedora-eln-aarch64: + additional_repos: + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/ + fedora-eln-powerpc64le: + additional_repos: + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/ + fedora-eln-s390x: + additional_repos: + - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/ + centos-stream-9: {} + centos-stream-9-aarch64: {} + centos-stream-9-powerpc64le: {} + centos-stream-9-s390x: {} + rhel-9: {} + rhel-9-aarch64: {} + rhel-9-powerpc64le: {} + rhel-9-s390x: {} + + - <<: *fdo_copr trigger: commit branch: main - owner: "@fedora-iot" # copr repo namespace - project: fedora-iot # copr repo name so you can consume the builds - targets: - - fedora-development-aarch64 - - fedora-development - - fedora-latest - - fedora-latest-aarch64 + owner: "@fedora-iot" # copr repo namespace + project: fedora-iot # copr repo name so you can consume the builds + + - 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 ...