Skip to content

Commit

Permalink
packit: Bump release only for daily Copr builds
Browse files Browse the repository at this point in the history
We don't want to bump the release to 99 for the downstream builds.
  • Loading branch information
vojtechtrefny committed Aug 20, 2024
1 parent 9da72b2 commit 4e15a5f
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
actions:
post-upstream-clone:
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" dist/libbytesize.spec.in"'
- 'cp dist/libbytesize.spec.in dist/libbytesize.spec'
- 'sed -i -e "s/@WITH_PYTHON3@/1/g" -e "s/@WITH_GTK_DOC@/1/g" -e "s/@WITH_TOOLS@/1/g" dist/libbytesize.spec'
create-archive:
Expand Down Expand Up @@ -31,13 +30,37 @@ 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}/\" dist/libbytesize.spec.in"'
- 'cp dist/libbytesize.spec.in dist/libbytesize.spec'
- 'sed -i -e "s/@WITH_PYTHON3@/1/g" -e "s/@WITH_GTK_DOC@/1/g" -e "s/@WITH_TOOLS@/1/g" dist/libbytesize.spec'
create-archive:
- './autogen.sh'
- './configure'
- 'make'
- 'make local'
- 'bash -c "ls *.tar*"'

- job: copr_build
trigger: commit
owner: "@storage"
project: udisks-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}/\" dist/libbytesize.spec.in"'
- 'cp dist/libbytesize.spec.in dist/libbytesize.spec'
- 'sed -i -e "s/@WITH_PYTHON3@/1/g" -e "s/@WITH_GTK_DOC@/1/g" -e "s/@WITH_TOOLS@/1/g" dist/libbytesize.spec'
create-archive:
- './autogen.sh'
- './configure'
- 'make'
- 'make local'
- 'bash -c "ls *.tar*"'

- job: propose_downstream
trigger: release
Expand Down

0 comments on commit 4e15a5f

Please sign in to comment.