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