Additional runner support
CI Pipeline / test (pull_request) Has been cancelled
CI Pipeline / e2e (chromium) (pull_request) Has been cancelled
CI Pipeline / e2e (firefox) (pull_request) Has been cancelled
CI Pipeline / e2e (webkit) (pull_request) Has been cancelled
CI Pipeline / visual-regression (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / test (pull_request) Has been cancelled
CI Pipeline / e2e (chromium) (pull_request) Has been cancelled
CI Pipeline / e2e (firefox) (pull_request) Has been cancelled
CI Pipeline / e2e (webkit) (pull_request) Has been cancelled
CI Pipeline / visual-regression (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
This commit is contained in:
Executable
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to register Gitea runner
|
||||
# Usage: ./scripts/register-runner.sh <registration_token>
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "❌ Error: Registration token required"
|
||||
echo ""
|
||||
echo "To get a registration token:"
|
||||
echo "1. Go to: https://git.medlab.host/CommunityRule/community-rule/settings/actions/runners"
|
||||
echo "2. Click 'New Runner' or find the registration token"
|
||||
echo "3. Run: ./scripts/register-runner.sh YOUR_TOKEN"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TOKEN=$1
|
||||
INSTANCE="https://git.medlab.host"
|
||||
NAME="community-rule-runner-mac"
|
||||
LABELS="self-hosted,macos-latest"
|
||||
|
||||
echo "🚀 Registering runner..."
|
||||
echo "Instance: $INSTANCE"
|
||||
echo "Name: $NAME"
|
||||
echo "Labels: $LABELS"
|
||||
echo ""
|
||||
|
||||
./act_runner register \
|
||||
--instance "$INSTANCE" \
|
||||
--token "$TOKEN" \
|
||||
--name "$NAME" \
|
||||
--labels "$LABELS" \
|
||||
--no-interactive
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ""
|
||||
echo "✅ Runner registered successfully!"
|
||||
echo "You can now start it with: ./scripts/start-runner.sh"
|
||||
else
|
||||
echo ""
|
||||
echo "❌ Registration failed. Please check the token and try again."
|
||||
exit 1
|
||||
fi
|
||||
Executable
+47
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "🔍 Verifying Gitea Runner Status"
|
||||
echo "================================="
|
||||
echo ""
|
||||
|
||||
# Check if runner is registered
|
||||
if [ ! -f .runner ]; then
|
||||
echo "❌ Runner not registered - .runner file not found"
|
||||
echo " Run: ./scripts/register-runner.sh <token>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Runner registration file exists"
|
||||
RUNNER_ID=$(cat .runner | grep -o '"id": [0-9]*' | cut -d' ' -f2)
|
||||
echo " Runner ID: $RUNNER_ID"
|
||||
echo ""
|
||||
|
||||
# Check if runner is running
|
||||
if pgrep -f "act_runner daemon" > /dev/null; then
|
||||
RUNNER_PID=$(pgrep -f "act_runner daemon")
|
||||
echo "✅ Runner process is running (PID: $RUNNER_PID)"
|
||||
else
|
||||
echo "⚠️ Runner process is NOT running"
|
||||
echo " Start it with: ./scripts/start-runner.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "📝 Recent logs (checking for polling activity):"
|
||||
if [ -f runner.log ]; then
|
||||
echo "---"
|
||||
tail -20 runner.log | grep -E "(polling|fetch|task|job|online|error|Error)" || tail -10 runner.log
|
||||
echo "---"
|
||||
echo ""
|
||||
echo "Look for messages like:"
|
||||
echo " - 'fetching task' or 'polling' (good - runner is active)"
|
||||
echo " - 'error' or 'Error' (bad - check the full log)"
|
||||
else
|
||||
echo "⚠️ No log file found"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "🔗 Check runner status in Gitea:"
|
||||
echo " https://git.medlab.host/CommunityRule/community-rule/settings/actions/runners"
|
||||
echo ""
|
||||
echo "The runner should show as 'Idle' (online) if it's working correctly."
|
||||
Reference in New Issue
Block a user