first commit
This commit is contained in:
11
entrypoint.sh
Normal file
11
entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Connecting to ${GITEA_INSTANCE_URL}"
|
||||
|
||||
if ! test -f .runner; then
|
||||
echo "No .runner file detected, running registration"
|
||||
/app/act_runner register --instance "${GITEA_INSTANCE_URL}" --token "${GITEA_RUNNER_REGISTRATION_TOKEN}" --name "${GITEA_RUNNER_NAME}" --labels "${GITEA_RUNNER_LABELS}" --no-interactive
|
||||
touch /.runner
|
||||
fi
|
||||
|
||||
/app/act_runner daemon
|
||||
Reference in New Issue
Block a user