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 eedc645
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:
targets:
- fedora-all
trigger: pull_request
actions:
post-upstream-clone:
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" blivet-gui.spec"'

- job: copr_build
trigger: commit
owner: "@storage"
project: blivet-daily
branch: main
preserve_project: true
actions:
post-upstream-clone:
- '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 eedc645

Please sign in to comment.