.github/workflows/deploy.yml aktualisiert
Some checks failed
Django Helm GitOps Deploy / build-and-deploy (push) Failing after 36s
Some checks failed
Django Helm GitOps Deploy / build-and-deploy (push) Failing after 36s
This commit is contained in:
parent
e9c7fdc029
commit
f1c25f9168
1 changed files with 18 additions and 7 deletions
25
.github/workflows/deploy.yml
vendored
25
.github/workflows/deploy.yml
vendored
|
|
@ -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!"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue