mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-07 16:00:29 -05:00
Add terraform for infra
This commit is contained in:
parent
53c4949927
commit
e14f7ac627
1 changed files with 9 additions and 8 deletions
|
|
@ -14,14 +14,15 @@ image:
|
||||||
.tf-init:
|
.tf-init:
|
||||||
before_script:
|
before_script:
|
||||||
- cd $WORKDIR
|
- cd $WORKDIR
|
||||||
- |
|
- tofu init
|
||||||
tofu init -reconfigure -backend-config="address=${GITLAB_TF_ADDRESS}" \
|
-reconfigure
|
||||||
-backend-config="lock_address=${GITLAB_TF_ADDRESS}/lock" \
|
-backend-config="address=${GITLAB_TF_ADDRESS}"
|
||||||
-backend-config="unlock_address=${GITLAB_TF_ADDRESS}/lock" \
|
-backend-config="lock_address=${GITLAB_TF_ADDRESS}/lock"
|
||||||
-backend-config="username=gitlab-ci-token" \
|
-backend-config="unlock_address=${GITLAB_TF_ADDRESS}/lock"
|
||||||
-backend-config="password=${CI_JOB_TOKEN}" \
|
-backend-config="username=gitlab-ci-token"
|
||||||
-backend-config="lock_method=POST" \
|
-backend-config="password=${CI_JOB_TOKEN}"
|
||||||
-backend-config="unlock_method=DELETE" \
|
-backend-config="lock_method=POST"
|
||||||
|
-backend-config="unlock_method=DELETE"
|
||||||
-backend-config="retry_wait_min=5"
|
-backend-config="retry_wait_min=5"
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue