kaiju.platform/prepare.sh

19 lines
490 B
Bash
Raw Permalink Normal View History

2025-06-14 23:49:32 +03:00
#!/usr/bin/env bash
# Set rights and permissions for the runner data directory
set -e
mkdir -p ./runner/data
touch ./runner/data/.runner
mkdir -p ./runner/data/.cache
chown -R 1001:1001 ./runner/data/.runner
chown -R 1001:1001 ./runner/data/.cache
chmod 775 ./runner/data/.runner
chmod 775 ./runner/data/.cache
chmod g+s ./runner/data/.runner
chmod g+s ./runner/data/.cache
docker compose up --build --force-recreate --detach
docker exec -it runner /bin/sh -c "forgejo-runner register"