Skip to content

Commit

Permalink
packit: generate tarball by tito, read Version from spec
Browse files Browse the repository at this point in the history
Complements: #483
Relates: #480
  • Loading branch information
praiskup authored and FrostyX committed Jan 12, 2024
1 parent a096b21 commit 9d1c10f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .packit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
srpm_build_deps:
- tito
- git

actions:
create-archive:
- bash -c "tito build --tgz --test -o ."
- bash -c "ls -1t ./*.tar.gz | head -n 1"
get-current-version:
- bash -c "grep ^Version tito.spec | awk '{ print $2 }'"

jobs:
- &copr
job: copr_build
Expand Down

2 comments on commit 9d1c10f

@praiskup
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/packit copr-build

@mfocko
Copy link

@mfocko mfocko commented on 9d1c10f Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/packit build

Please sign in to comment.