All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 7s
Strip hardcoded secrets from gitea/config/app.ini (already injected via GITEA__ env vars) and commit it to git. Add download.sh to fetch the act_runner binary on demand instead of syncing it. Everything else (searxng settings, certbot certs, runner registration, Spotify tokens) is generated at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
699 B
Bash
Executable File
28 lines
699 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! -f ./act_runner ]; then
|
|
echo "act_runner binary not found. Downloading..." >&2
|
|
bash "$(dirname "$0")/download.sh"
|
|
fi
|
|
|
|
echo "Waiting for localhost:3000 to respond..." >&2
|
|
|
|
while ! curl -sf http://localhost:3000 > /dev/null 2>&1; do
|
|
sleep 2
|
|
done
|
|
|
|
echo "localhost:3000 is up." >&2
|
|
|
|
if [ ! -f .runner ]; then
|
|
echo "No .runner file found. Registering runner..." >&2
|
|
./act_runner register --no-interactive \
|
|
--instance http://localhost:3000 \
|
|
--token "${GITEA_RUNNER_REGISTRATION_TOKEN}" \
|
|
--name "${GITEA_RUNNER_NAME:-pi-runner}" \
|
|
--labels self-hosted
|
|
fi
|
|
|
|
echo "Starting act_runner daemon..." >&2
|
|
exec ./act_runner daemon
|
|
|