act-runners/kubectl: image revision
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f "$GITEA_RUNNER_CONFIG_FILE" ]; then
|
||||
echo "ERROR: Config file not found at $GITEA_RUNNER_CONFIG_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd /home/runner/data
|
||||
if [ ! -f ".runner" ]; then
|
||||
|
||||
echo "Registering runner..."
|
||||
act_runner register \
|
||||
-c "$GITEA_RUNNER_CONFIG_FILE" \
|
||||
--instance "$GITEA_INSTANCE_URL" \
|
||||
--token "$GITEA_RUNNER_REGISTRATION_TOKEN" \
|
||||
--name "$GITEA_RUNNER_NAME" \
|
||||
--labels "$GITEA_RUNNER_LABELS"
|
||||
fi
|
||||
|
||||
echo "Starting runner..."
|
||||
exec act_runner daemon \
|
||||
-c "$GITEA_RUNNER_CONFIG_FILE"
|
||||
Reference in New Issue
Block a user