chdir in apply scripts

This commit is contained in:
Jörg Thalheim 2024-04-08 07:28:06 +02:00
parent 0340d8e9e2
commit a98f719117
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
rm -f .terraform.lock.hcl
tofu init -backend-config="password=$GITLAB_TOKEN" -backend-config="username=$GITLAB_USER"
tofu apply

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
rm -f .terraform.lock.hcl
tofu init -backend-config="password=$GITLAB_TOKEN" -backend-config="username=$GITLAB_USER"
tofu apply