Skip to content

Commit

Permalink
ci: Set custom release suffix for Packit
Browse files Browse the repository at this point in the history
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
vojtechtrefny committed Nov 25, 2023
1 parent a88d362 commit d812178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
project: blivet-daily
branch: main
preserve_project: true
actions:
post-upstream-clone:
# bump release to 99 to always be ahead of Fedora builds
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" blivet-gui.spec"'

- job: propose_downstream
trigger: release
Expand Down
2 changes: 1 addition & 1 deletion blivet-gui.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Tool for data storage configuration
Name: blivet-gui
Version: 2.4.2
Release: 99%{?dist}
Release: 1%{?dist}
Source0: http://github.com/storaged-project/blivet-gui/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: blivet-gui_event.conf
License: GPL-2.0-or-later
Expand Down

0 comments on commit d812178

Please sign in to comment.