.builds: add copr-webhook

This commit is contained in:
Maxwell G 2023-08-13 17:33:04 +00:00
commit ea9dc41a5d
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
2 changed files with 17 additions and 1 deletions

View file

@ -5,6 +5,7 @@
image: fedora/rawhide
packages:
- pipx
- nox
- python3-pytest
- python3-pyyaml
@ -12,7 +13,15 @@ packages:
- rpm
sources:
- https://git.sr.ht/~gotmax23/forge-srpm-macros
secrets:
# gotmax23/forge-srpm-macros-dev webhook
- 454377f4-e19c-4e44-a21d-6462e3d06ea2
tasks:
- setup: |
pipx install git+https://git.sr.ht/~gotmax23/releaserr
- copr-webhook: |
cd forge-srpm-macros
releaserr copr-webhook ~/.copr-dev-hook --branch origin/main --skip-if-missing
- pytest: |
cd forge-srpm-macros
pytest -vv

View file

@ -8,6 +8,10 @@ SPDX-License-Identifier: GPL-1.0-or-later
[![builds.sr.ht status](https://builds.sr.ht/~gotmax23/forge-srpm-macros/commits/main.svg)](https://builds.sr.ht/~gotmax23/forge-srpm-macros/commits/main?)
[![copr build status][badge-copr]][link-copr] (gotmax23/forge-srpm-macros)
[![copr build status][badge-copr-dev]][link-copr-dev] (gotmax23/forge-srpm-macros-dev)
These macros simplify the packaging of forge-hosted projects.
They automatically compute the Source urls based on macros set in the specfile.
This code has been split out from redhat-rpm-config to ease maintenance.
@ -42,4 +46,7 @@ This repository is licensed under
SPDX-License-Identifer: GPL-1.0-or-later
to match the license of redhat-rpm-config.
[badge-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/forge-srpm-macros/package/forge-srpm-macros/status_image/last_build.png
[link-copr]: https://copr.fedorainfracloud.org/coprs/gotmax23/forge-srpm-macros/
[badge-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/forge-srpm-macros-dev/package/forge-srpm-macros/status_image/last_build.png
[link-copr-dev]: https://copr.fedorainfracloud.org/coprs/gotmax23/forge-srpm-macros-dev/