Skip to content

Commit 932dce6

Browse files
authored
Merge pull request #18 from r0x0d/package-as-copr-build
Package as copr build
2 parents 47669b1 + 084f7fe commit 932dce6

File tree

6 files changed

+762
-54
lines changed

6 files changed

+762
-54
lines changed

.packit.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,42 @@ upstream_package_name: rhc-bash-worker
33
downstream_package_name: rhc-bash-worker
44
upstream_project_url: https://github.com/oamg/rhc-bash-worker
55

6-
srpm_build_deps: []
6+
srpm_build_deps: [golang, make]
7+
78

89
jobs:
910
- job: copr_build
10-
trigger: pull_request
11+
enable_net: true
1112
owner: "@oamg"
12-
project: rhc-bash-worker
13+
project: "rhc-bash-worker"
1314
targets:
14-
- epel-7-x86_64
15+
- epel-7-x86_64
16+
trigger: pull_request
1517
actions:
1618
# do not get the version from a tag (git describe) but from the spec file
1719
get-current-version:
18-
- grep -oP '^Version:\s+\K\S+' packaging/rhc-bash-worker.spec
20+
- grep -oP '^Version:\s+\K\S+' packaging/rhc-bash-worker.spec
21+
create-archive:
22+
- "make distribution-tarball"
23+
- bash -c "ls -1 ./rhc-bash-worker-*.tar.gz"
24+
1925
- job: copr_build
20-
trigger: commit
21-
branch: main
26+
enable_net: true
2227
owner: "@oamg"
23-
project: rhc-bash-worker
28+
project: "rhc-bash-worker"
2429
targets:
25-
- epel-7-x86_64
30+
- epel-7-x86_64
31+
trigger: commit
32+
branch: main
2633
actions:
2734
# bump spec so we get release starting with 2 and hence all the default branch builds will
2835
# have higher NVR than all the PR builds
2936
post-upstream-clone:
30-
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/rhc-bash-worker.spec
37+
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/rhc-bash-worker.spec
38+
3139
# do not get the version from a tag (git describe) but from the spec file
3240
get-current-version:
33-
- grep -oP '^Version:\s+\K\S+' packaging/rhc-bash-worker.spec
41+
- grep -oP '^Version:\s+\K\S+' packaging/rhc-bash-worker.spec
42+
create-archive:
43+
- "make distribution-tarball"
44+
- bash -c "ls -1 ./rhc-bash-worker-*.tar.gz"

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
WIP

0 commit comments

Comments
 (0)