15 lines
343 B
Bash
15 lines
343 B
Bash
|
#!/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"
|