This commit is contained in:
Nikita Romanov 2025-06-14 23:49:32 +03:00
parent a932e27835
commit 1e840c013f
6 changed files with 26 additions and 18 deletions

18
prepare.sh Executable file
View file

@ -0,0 +1,18 @@
#!/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"