cloudron-drone-app/run-agent.sh
Felix Bartels e80b4f3118 add scripting to run agent
Signed-off-by: Felix Bartels <felix@host-consultants.de>
2020-06-05 22:36:50 +02:00

17 lines
328 B
Bash
Executable file

#/bin/sh
set -x
random_string() {
LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c32
}
if [ ! -e .env ]; then
cat <<-EOF > ".env"
DRONE_RPC_SERVER=https://drone.9wd.eu
DRONE_RPC_SECRET=QdExkSpgVY5RiC783UcqFgt8mvEs0Mid
DRONE_RUNNER_CAPACITY="$(nproc)"
DRONE_RUNNER_NAME="$(hostname)"
EOF
fi
docker-compose up -d