chore: add build-only to all new CI runners
Add Runner Labels / Label Runners 4 (push) Successful in 0s
Add Runner Labels / Label Runners 5 (push) Successful in 0s
Add Runner Labels / Label Runners 6 (push) Successful in 0s
Add Runner Labels / Label Runners 7 (push) Successful in 0s
Add Runner Labels / Label Runners 8 (push) Successful in 0s
Add Runner Labels / Label Runners 9 (push) Successful in 0s
Add Runner Labels / Label Runners 10 (push) Successful in 0s
CMD Agent probe / probe (push) Failing after 0s
Get CMD Agent tokens / get-token (push) Failing after 0s
Probe 8443 cmd agent / probe (push) Successful in 0s
Probe 8443 v2 / probe (push) Successful in 0s
Read CMD Agent source / read (push) Successful in 0s
Recovery probe / find-creds (push) Failing after 0s
Try tokens on old server / try (push) Failing after 2s
CMD Agent old server / probe (push) Failing after 5s
Add Runner Labels / Label Runners 3 (push) Failing after 10m8s
Add Runner Labels / Label Runners 2 (push) Failing after 10m8s
Add Runner Labels / Label Runners 1 (push) Failing after 10m9s

This commit is contained in:
2026-07-14 14:04:08 +08:00
parent 53b328318e
commit 6c925b57ae
+32 -58
View File
@@ -1,64 +1,38 @@
name: Probe v2
name: Add build-only label
on: push
jobs:
probe:
add-labels:
runs-on: [host, ci-check]
steps:
- name: search server info
- name: add build-only to all 6 runners
run: |
set +e
echo "=== OS Info ==="
cat /etc/os-release 2>/dev/null | head -5
echo ""
echo "=== /opt contents ==="
ls -la /opt/
echo ""
echo "=== /root contents (top level) ==="
ls -la /root/ 2>/dev/null
echo ""
echo "=== /root/.ssh/ ==="
ls -la /root/.ssh/ 2>/dev/null
echo ""
echo "=== production_deploy_key pub ==="
cat /root/.ssh/production_deploy_key.pub 2>/dev/null || echo "no pub key"
echo ""
echo "=== All .ssh/id_*.pub ==="
ls /root/.ssh/*.pub 2>/dev/null || echo "no pub keys"
for f in /root/.ssh/*.pub; do [ -f "$f" && echo "--- $f ---" && cat "$f"; done
echo ""
echo "=== /root/.bash_history (first 50 lines)==="
cat /root/.bash_history 2>/dev/null | head -50
echo ""
echo "=== Docker containers ==="
docker ps -a 2>/dev/null | head -20
echo ""
echo "=== Systemd services ==="
systemctl list-units --type=service --state=running 2>/dev/null | grep -i "git\|runner\|docker\|gitea\|ssh\|portain" | head -20
echo ""
echo "=== act-runner services ==="
systemctl list-units --type=service 2>/dev/null | grep -i "act\|runner" | head -20
echo ""
echo "=== Docker images ==="
docker images 2>/dev/null | head -20
echo ""
echo "=== Nginx config ==="
ls /etc/nginx/conf.d/ 2>/dev/null | head -20
echo ""
echo "=== /etc/hosts ==="
cat /etc/hosts
echo ""
echo "=== PROBE DONE ==="
cd /opt/act-runner
for i in 1 2 3 4 5 6; do
F="runner-$i/.runner"
if [ -f "$F" ]; then
python3 << PYEOF
import json
with open('/opt/act-runner/$F') as f:
data = json.load(f)
labels = data.get('labels', [])
if 'build-only:host' not in labels:
labels.append('build-only:host')
data['labels'] = labels
with open('/opt/act-runner/$F', 'w') as f:
json.dump(data, f, indent=2)
print('runner-$i: ADDED build-only')
else:
print('runner-$i: already has build-only')
PYEOF
systemctl restart act-runner-$i.service 2>&1
echo "runner-$i: restarted"
fi
done
sleep 15
echo "=== Final check ==="
for i in 1 2 3 4 5 6; do
echo -n "runner-$i labels: "
python3 -c "import json; d=json.load(open('/opt/act-runner/runner-$i/.runner')); print(d['labels'])" 2>&1
done
echo "=== DONE on $(hostname) ==="