Compare commits

..

4 Commits

Author SHA1 Message Date
Dustin 8872674f32 wip: Use Jenkins build number as RPM release
infra/dch-autoprovision/pipeline/head This commit looks good Details
2025-08-16 09:47:43 -05:00
Dustin 76bf997089 wip: ci: prepare: Install rpmautospec
infra/dch-autoprovision/pipeline/head This commit looks good Details
2025-08-16 09:41:48 -05:00
Dustin 75a8d26eab authorized_keys: Fix option syntax
> `bad key options: missing start quote`
2025-08-16 09:35:19 -05:00
Dustin 572f04ab68 ci: Add Jenkins build pipeline 2025-08-16 09:35:17 -05:00
4 changed files with 13 additions and 2 deletions

View File

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

View File

@ -3,4 +3,4 @@
install -o 1000 -g 1000 -d f${FEDORA}
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

@ -6,6 +6,7 @@ make
openssh-clients
rpm-build
rpm-sign
rpmautospec
rsync
systemd-rpm-macros
EOF

View File

@ -9,5 +9,15 @@ if [ -r "${fw_cfg}" ]; then
set -- "$@" -F branch="$(cat "${fw_cfg}")"
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 \
| curl -fsS https://webhooks.pyrocufflink.blue/host/online "$@"