-
Notifications
You must be signed in to change notification settings - Fork 8
/
.packit.yaml
44 lines (39 loc) · 1.34 KB
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
specfile_path: packaging/rhc-worker-script.spec
upstream_package_name: rhc-worker-script
downstream_package_name: rhc-worker-script
upstream_project_url: https://github.com/oamg/rhc-worker-script
srpm_build_deps: [golang, make]
jobs:
- job: copr_build
enable_net: true
owner: "@oamg"
project: "rhc-worker-script"
targets:
- epel-8-x86_64
trigger: pull_request
actions:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/rhc-worker-script.spec
create-archive:
- "make distribution-tarball"
- bash -c "ls -1 ./rhc-worker-script-*.tar.gz"
- job: copr_build
enable_net: true
owner: "@oamg"
project: "rhc-worker-script"
targets:
- epel-8-x86_64
trigger: commit
branch: main
actions:
# bump spec so we get release starting with 2 and hence all the default branch builds will
# have higher NVR than all the PR builds
post-upstream-clone:
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/rhc-worker-script.spec
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/rhc-worker-script.spec
create-archive:
- "make distribution-tarball"
- bash -c "ls -1 ./rhc-worker-script-*.tar.gz"