forked from cgrates/cgrates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackit.yaml
23 lines (21 loc) · 895 Bytes
/
packit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
specfile_path: packages/copr.fedorainfracloud.org/cgrates.spec
upstream_package_name: cgrates
downstream_package_name: cgrates
jobs:
- job: copr_build
trigger: commit
owner: cgrates
branch : master
project: master
preserve_project : True
enable_net: True
targets:
- epel-7-x86_64
- epel-8-x86_64
- epel-9-x86_64
actions:
create-archive:
- bash -c "git_last_commit=$(git rev-parse HEAD) && tar -czvf /tmp/${git_last_commit}.tar.gz . && echo /tmp/${git_last_commit}.tar.gz"
fix-spec-file:
- bash -c "git_last_commit=$(git rev-parse HEAD) && sed -i 's|{{{git_commit}}}|'\"${git_last_commit}\"'|' packages/copr.fedorainfracloud.org/cgrates.spec"
- bash -c "release_tag=$(git log -1 --format=%ci | date +%Y%m%d%H%M%S)+$(git rev-parse --short HEAD) && sed -i 's|{{{releaseTag}}}|'\"${release_tag}\"'|' packages/copr.fedorainfracloud.org/cgrates.spec"