-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Set custom release number for Packit
We want a high release number (99) for the daily builds done by Packit to make sure the Copr daily builds are always newer than the version in Fedora. We can do this in Packit config instead of bumping the release in the spec everytime.
- Loading branch information
1 parent
828caa3
commit 9e7862c
Showing
2 changed files
with
19 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,31 @@ jobs: | |
targets: | ||
- fedora-all | ||
trigger: pull_request | ||
actions: | ||
post-upstream-clone: | ||
# we need to set email and username for the merge commit | ||
- 'git config user.email "[email protected]"' | ||
- 'git config user.name "Blivet CI"' | ||
# merge the release branch to get correct version in spec | ||
- 'git merge --ff origin/3.9-release' | ||
# bump release to 99 to always be ahead of Fedora builds | ||
# - 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" python-blivet.spec"' | ||
|
||
- job: copr_build | ||
trigger: commit | ||
owner: "@storage" | ||
project: blivet-daily | ||
branch: 3.9-devel | ||
preserve_project: true | ||
actions: | ||
post-upstream-clone: | ||
# we need to set email and username for the merge commit | ||
- 'git config user.email "[email protected]"' | ||
- 'git config user.name "Blivet CI"' | ||
# merge the release branch to get correct version in spec | ||
- 'git merge --ff origin/3.9-release' | ||
# bump release to 99 to always be ahead of Fedora builds | ||
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" python-blivet.spec"' | ||
|
||
srpm_build_deps: | ||
- git | ||
|
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