From f1c25f91689a6fafef47834584d69a1ec4d8b5df Mon Sep 17 00:00:00 2001 From: bast Date: Sun, 1 Nov 2026 17:00:28 +0000 Subject: [PATCH] .github/workflows/deploy.yml aktualisiert --- .github/workflows/deploy.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6f969f0..ae61119 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,22 +50,33 @@ jobs: - name: Verify App Health run: | - echo "Warte auf das Ingress-Routing..." - sleep 5 - # Im Runner-Container schiessen wir es direkt gegen das Host-Eingangstor - curl --fail --connect-timeout 5 -H "Host: boday-it.ch" http://docker.internal || curl --fail --connect-timeout 5 -H "Host: boday-it.ch" http://172.17.0 || exit 1 + echo "Warte 15 Sekunden auf die Django-Zertifikate und Migrationen..." + sleep 15 + + # -L folgt der automatischen Sprachweiterleitung (/en/) fehlerfrei ins Ziel! + # Wir zielen auf die feste Gateway-IP 172.17.0.1 auf Port 8080 deines Host-Systems + curl --fail -L --connect-timeout 5 -H "Host: boday-it.ch" http://172.17.0 || exit 1 + echo "Erfolg: Die Boday-IT Django-Webseite läuft perfekt via Helm im GitOps-Standard!" - name: Publish Map to cloudmon Dashboard run: | - # 1. Terraform generiert das standardisierte, anonyme JSON-Abbild + # 1. Generiert das standardisierte, anonyme JSON-Abbild aus dem lokalen State terraform show -json > plan.json - # 2. Wir schiessen das Paket direkt per API an dein cloudmon-Dashboard! + # 2. Schiesst das Paket direkt per HTTP-POST an dein cloudmon-Eingangstor auf Port 8080 curl -X POST \ -H "Authorization: Bearer boday-cloudmon-super-token-2026" \ -H "Content-Type: application/json" \ --data-binary @plan.json \ - "http://cluster.local{{ github.repository }}" + "http://172.17.0{{ github.repository }}" + + echo "Infrastruktur-Map erfolgreich an cloudmon übermittelt!" + + + + + +