Skip to content

Commit

Permalink
simplify packit
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Jan 29, 2024
1 parent f3fd46e commit 6619296
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,24 @@
# https://packit.dev/docs/configuration/

---
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 \"$PACKIT_CONFIG_PACKAGE_NAME.spec\" | awk '{ print $2 }'"

packages:
mock:
specfile_path: mock.spec
paths:
- ./mock
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 mock-[0-9]* --abbrev=0 HEAD | egrep -o
[0-9]+\.[0-9]+"
downstream_package_name: mock
upstream_tag_template: mock-{version}
mock-core-configs:
specfile_path: mock-core-configs.spec
paths:
- ./mock-core-configs
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 mock-core-configs-[0-9]* --abbrev=0 HEAD
| egrep -o [0-9]+\.[0-9]+"
downstream_package_name: mock-core-configs
upstream_tag_template: mock-core-configs-{version}
srpm_build_deps:
Expand Down

0 comments on commit 6619296

Please sign in to comment.