.github/workflows/deploy.yml aktualisiert
All checks were successful
cloudmon GitOps Deploy / build-and-deploy (push) Successful in 22s
All checks were successful
cloudmon GitOps Deploy / build-and-deploy (push) Successful in 22s
This commit is contained in:
parent
176efeb594
commit
f0d92688c7
1 changed files with 8 additions and 2 deletions
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
|
|
@ -41,14 +41,20 @@ jobs:
|
||||||
echo "${{ secrets.KUBECONFIG_DATA }}" > ./kind_kubeconfig
|
echo "${{ secrets.KUBECONFIG_DATA }}" > ./kind_kubeconfig
|
||||||
chmod 600 ./kind_kubeconfig
|
chmod 600 ./kind_kubeconfig
|
||||||
|
|
||||||
# Bereinigt alte Reste und zündet das dezentrale Terraform-Zentral-Binary
|
|
||||||
- name: Terraform Deploy
|
- name: Terraform Deploy
|
||||||
run: |
|
run: |
|
||||||
docker exec local-k3s-platform kubectl delete deployment cloudmon service cloudmon-service ingress-v1 cloudmon-ingress -n default --ignore-not-found=true 2>/dev/null || true
|
# DIE RADIKALE RETTUNG: Zwingt Kubernetes, die Altlasten SOFORT und rückstandslos zu löschen!
|
||||||
|
docker exec local-k3s-platform kubectl delete ingress cloudmon-ingress -n default --ignore-not-found=true --force --grace-period=0 2>/dev/null || true
|
||||||
|
docker exec local-k3s-platform kubectl delete service cloudmon-service -n default --ignore-not-found=true --force --grace-period=0 2>/dev/null || true
|
||||||
|
docker exec local-k3s-platform kubectl delete deployment cloudmon -n default --ignore-not-found=true --force --grace-period=0 2>/dev/null || true
|
||||||
|
|
||||||
|
# Kurze Atempause für die Cluster-API (2 Sekunden)
|
||||||
|
sleep 2
|
||||||
|
|
||||||
terraform init
|
terraform init
|
||||||
terraform apply -auto-approve -var="app_version=${{ github.sha }}"
|
terraform apply -auto-approve -var="app_version=${{ github.sha }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Verify Dashboard Health
|
- name: Verify Dashboard Health
|
||||||
run: |
|
run: |
|
||||||
echo "Warte auf die cloudmon-Pods und das Ingress-Routing..."
|
echo "Warte auf die cloudmon-Pods und das Ingress-Routing..."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue