Skip to content

Commit

Permalink
Split copr project into release and nightly
Browse files Browse the repository at this point in the history
Let copr and packit decide the best format for the versions
  • Loading branch information
LecrisUT committed Nov 21, 2024
1 parent 0563827 commit 2372d93
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ _:
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
project: tmt
- &test_base
job: tests
trigger: pull_request
Expand Down Expand Up @@ -65,35 +64,17 @@ jobs:
# Release to copr
- <<: *copr_on_tmt
trigger: release
actions:
<<: *base-actions
get-current-version:
- hatch version
project: release

# 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: nightly

# 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
Expand Down

0 comments on commit 2372d93

Please sign in to comment.