-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packit config for Fedora copr builds
Builds are triggered by commits to master branch and by pull requests
- Loading branch information
1 parent
c835dba
commit 54e70b0
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
specfile_path: packaging/leapp.spec | ||
|
||
upstream_project_url: https://github.com/oamg/leapp | ||
|
||
jobs: | ||
- job: copr_build | ||
trigger: pull_request | ||
metadata: | ||
owner: "@oamg" | ||
project: leapp | ||
targets: | ||
- epel-7-ppc64le | ||
- epel-7-x86_64 | ||
- epel-8-x86_64 | ||
- fedora-all-aarch64 | ||
- fedora-all-x86_64 | ||
actions: | ||
post-upstream-clone: | ||
# builds from PRs should have lower NVR than those from master branch | ||
- sed -i "s/1%{?dist}/0%{?dist}/g" packaging/leapp.spec | ||
get-current-version: | ||
# get version from spec file instead from git tag | ||
- bash -c "grep -m1 '^Version:' packaging/leapp.spec | grep -om1 '[0-9].[0-9.]**'" | ||
- job: copr_build | ||
trigger: commit | ||
metadata: | ||
branch: master | ||
owner: "@oamg" | ||
project: leapp | ||
targets: | ||
- epel-7-ppc64le | ||
- epel-7-x86_64 | ||
- epel-8-x86_64 | ||
- fedora-all-aarch64 | ||
- fedora-all-x86_64 | ||
actions: | ||
post-upstream-clone: | ||
# builds from master branch should have the highest NVR | ||
- sed -i "s/1%{?dist}/100%{?dist}/g" packaging/leapp.spec | ||
get-current-version: | ||
# get version from spec file instead from git tag | ||
- bash -c "grep -m1 '^Version:' packaging/leapp.spec | grep -om1 '[0-9].[0-9.]**'" |