From 8ce0f472584ff7bbb039e51b0237e1a0a55ef09c Mon Sep 17 00:00:00 2001 From: Mykhailo Svishchov Date: Sat, 7 Mar 2026 20:14:13 +0200 Subject: [PATCH] debug gitea issue --- .gitea/workflows/debug-network.yaml | 23 +++++++++++++++++++++++ docs/GITEA_VPS_DEPLOY.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .gitea/workflows/debug-network.yaml diff --git a/.gitea/workflows/debug-network.yaml b/.gitea/workflows/debug-network.yaml new file mode 100644 index 0000000..89f855c --- /dev/null +++ b/.gitea/workflows/debug-network.yaml @@ -0,0 +1,23 @@ +name: Debug job network +on: + push: + branches: [main] +jobs: + debug: + runs-on: ubuntu-latest + steps: + - name: Show job container network + run: | + echo "=== /etc/hosts ===" + cat /etc/hosts + echo "=== ip addr ===" + ip addr || true + echo "=== ping server ===" + ping -c 1 server 2>&1 || true + echo "=== getent hosts server ===" + getent hosts server 2>&1 || true + echo "=== try 127.0.0.1:3000 ===" + curl -s -o /dev/null -w "%{http_code}" --connect-timeout 2 http://127.0.0.1:3000/ || echo "failed" + echo "" + echo "=== try host.docker.internal:3000 (if exists) ===" + curl -s -o /dev/null -w "%{http_code}" --connect-timeout 2 http://host.docker.internal:3000/ 2>/dev/null || echo "failed/skipped" \ No newline at end of file diff --git a/docs/GITEA_VPS_DEPLOY.md b/docs/GITEA_VPS_DEPLOY.md index 7acf9fc..c298163 100644 --- a/docs/GITEA_VPS_DEPLOY.md +++ b/docs/GITEA_VPS_DEPLOY.md @@ -1,5 +1,6 @@ # Gitea Actions: Deploy honey-be to VPS on push to main + This guide sets up automatic deployment of **honey-be** to your Honey VPS (188.116.23.7) when you push to the `main` branch. The workflow runs on your Gitea runner, syncs the repo via rsync over SSH, then runs the rolling-update script on the VPS. ## Prerequisites