wip: Use Jenkins build number as RPM release
infra/dch-autoprovision/pipeline/head This commit looks good Details

dev/ci
Dustin 2025-08-16 09:47:43 -05:00
parent 76bf997089
commit 8872674f32
3 changed files with 12 additions and 2 deletions

View File

@ -17,7 +17,7 @@ define rpmbuild
-D '_sourcedir %_topdir' \ -D '_sourcedir %_topdir' \
-D '_specdir %_topdir' \ -D '_specdir %_topdir' \
-D '_srcrpmdir %_topdir' \ -D '_srcrpmdir %_topdir' \
$(RPMBUILD_ARGS)
endef endef
rpm: $(O)/$(ARCH)/$(RPM) rpm: $(O)/$(ARCH)/$(RPM)

View File

@ -3,4 +3,4 @@
install -o 1000 -g 1000 -d f${FEDORA} install -o 1000 -g 1000 -d f${FEDORA}
setpriv --reuid 1000 --regid 1000 --keep-groups \ setpriv --reuid 1000 --regid 1000 --keep-groups \
make O=f${FEDORA} srpm rpm make O=f${FEDORA} RPMBUILD_ARGS="-D '_rpmautospec_release_number ${BUILD_NUMBER}'" srpm rpm

View File

@ -9,5 +9,15 @@ if [ -r "${fw_cfg}" ]; then
set -- "$@" -F branch="$(cat "${fw_cfg}")" set -- "$@" -F branch="$(cat "${fw_cfg}")"
fi fi
set -- "$(cat /proc/cmdline)"
while [ $# -gt 0 ]; do
case "$1" in
dch.cfg-branch=*)
set -- "$@" -F branch="${1#*=}"
;;
esac
shift
done
cat /etc/ssh/ssh_host_*_key.pub \ cat /etc/ssh/ssh_host_*_key.pub \
| curl -fsS https://webhooks.pyrocufflink.blue/host/online "$@" | curl -fsS https://webhooks.pyrocufflink.blue/host/online "$@"