.github/workflows/deploy.yml aktualisiert
This commit is contained in:
parent
f39be913f6
commit
56c448a178
1 changed files with 0 additions and 11 deletions
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
|
|
@ -117,14 +117,3 @@ jobs:
|
||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Publish Map to cloudmon Dashboard (prod)
|
|
||||||
run: |
|
|
||||||
# show -json enthält sensitive Werte im Klartext -> Prod-Secrets vor dem Versand entfernen
|
|
||||||
terraform show -json | jq 'del(.. | .set_sensitive?)' > plan.json
|
|
||||||
! grep -qF "${{ secrets.PROD_POSTGRES_PASSWORD }}" plan.json || { echo "Secret im JSON gefunden, Abbruch"; exit 1; }
|
|
||||||
curl -X POST \
|
|
||||||
-H "Authorization: Bearer ${{ secrets.CLOUDMON_TOKEN }}" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-H "Host: cloudmon.local" \
|
|
||||||
--data-binary @plan.json \
|
|
||||||
"http://local-k3s-platform:80/api/v1/push/?repo=${{ github.repository }}&env=prod"
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue