updated ci/cd
Some checks failed
Deployment / deploy-docker (push) Failing after 11s

This commit is contained in:
Melchior Reimers
2026-02-04 19:34:58 +01:00
parent 9830875e36
commit 07fe59e237

View File

@@ -33,9 +33,15 @@ jobs:
run: | run: |
set -e set -e
# Kopiere das Template und ersetze die Platzhalter mit sed # Kopiere das Template und ersetze die Platzhalter mit sed
cp terraform.tfvars.example terraform.tfvars python - <<'PY'
sed -i "s|__HCLOUD_TOKEN__|${HETZNER_TOKEN}|g" terraform.tfvars from pathlib import Path
sed -i "s|__SSH_KEY__|${SSH_KEY}|g" terraform.tfvars import os
content = Path("terraform.tfvars.example").read_text()
content = content.replace("__HCLOUD_TOKEN__", os.environ["HETZNER_TOKEN"])
content = content.replace("__SSH_KEY__", os.environ["SSH_KEY"])
Path("terraform.tfvars").write_text(content)
PY
terraform init terraform init
terraform apply -auto-approve terraform apply -auto-approve