From bc7d1765001446b6911a5d72340ccc97d4a287bf Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Thu, 21 Nov 2024 14:45:39 +0100 Subject: [PATCH] Split copr project into `stable` and `latest` Let copr and packit decide the best format for the versions Signed-off-by: Cristian Le --- .packit.yaml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 0ae5ff30e5..5a8ab36e68 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -34,7 +34,6 @@ _: list_on_homepage: True preserve_project: True owner: "@teemtee" - project: tmt - &test_base job: tests trigger: pull_request @@ -65,35 +64,17 @@ jobs: # Release to copr - <<: *copr_on_tmt trigger: release - actions: - <<: *base-actions - get-current-version: - - hatch version + project: stable # Build commits to main - <<: *copr_on_tmt trigger: commit branch: main - release_suffix: "{PACKIT_PROJECT_BRANCH}" - actions: - <<: *base-actions - get-current-version: - # Get rid of the the final version digit to make copr - # builds older than the final release - - bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev/.dev/'" + project: latest # Build pull requests - <<: *copr_on_packit trigger: pull_request - actions: - <<: *base-actions - get-current-version: - # Use `dev888` instead of the last version digit to make - # builds older than the final release and newer than - # copr builds from main. Remove the remaining suffix - # generated by `hatch version` as well so that build - # with the latest timestamp always wins. - - bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev.*/.dev888/'" # Test core - <<: *test_base