forgejo-runner-pve-ubuntu-l.../register-forgejo-runner.sh

15 lines
343 B
Bash
Raw Permalink Normal View History

2024-07-27 09:58:18 +02:00
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <registration token>"
exit 64
fi
rel="$(lsb_release -rs 2>/dev/null)"
forgejo-runner register --no-interactive \
--name "ubuntu-${rel}-$(hostname)" \
--instance https://git.hamburg.ccc.de/ \
--labels ubuntu-latest:host://-self-hosted,ubuntu-${rel}:host://-self-hosted \
--token "$1"