Skip to content

Commit

Permalink
Merge pull request #148 from vojtechtrefny/main_packit-release-bump-fix
Browse files Browse the repository at this point in the history
packit: Bump release only for daily Copr builds
  • Loading branch information
vojtechtrefny authored Aug 22, 2024
2 parents 9da72b2 + 4e15a5f commit dedf521
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 dedf521

Please sign in to comment.