This commit is contained in:
@@ -21,11 +21,13 @@ jobs:
|
||||
mkdir -p /root/iac
|
||||
cd /root/iac
|
||||
|
||||
# Repository aktualisieren
|
||||
# Repository hart zurücksetzen, um Konflikte mit terraform.tfvars zu lösen
|
||||
if [ ! -d ".git" ]; then
|
||||
git clone https://git.bana.space/krumbelfix/iac.git .
|
||||
else
|
||||
git pull origin main
|
||||
git fetch origin main
|
||||
git reset --hard origin/main # Löscht lokale Änderungen an terraform.tfvars
|
||||
git clean -fd # Entfernt ungetrackte Dateien
|
||||
fi
|
||||
|
||||
# Datei komplett neu schreiben (verhindert Syntax-Chaos)
|
||||
|
||||
Reference in New Issue
Block a user