buildbot-scripts/docker/bionic/entrypoint.sh
2024-03-04 01:42:59 +08:00

11 lines
370 B
Bash
Executable File

#!/bin/bash
[ -d /var/lib/buildbot/workers ] || mkdir /var/lib/buildbot/workers
buildbot-worker create-worker --connection-string "TLS:$1:9989:trustRoots=/usr/local/share/ca-certificates" /var/lib/buildbot/workers/default "$1" "$2" "$3"
unset BUILDMASTER WORKERNAME WORKERPASS
cd /var/lib/buildbot/workers/default
/usr/bin/dumb-init buildbot-worker start --nodaemon