Loading templates/terraform.yml +9 −9 Original line number Diff line number Diff line Loading @@ -5,10 +5,10 @@ include: .tf_template: image: registry.gitlab.com/gitlab-org/terraform-images/stable:latest image: registry.gitlab.com/components/opentofu/gitlab-opentofu:latest-debian before_script: - cd ${TF_ROOT} - terraform version - tofu version cache: paths: - ${TF_ROOT}/.terraform Loading @@ -25,26 +25,26 @@ include: extends: .tf_template stage: test script: - gitlab-terraform validate - gitlab-tofu validate .tf_fmt: extends: .tf_template stage: test script: - gitlab-terraform fmt - gitlab-tofu fmt .tf_validate_fmt: extends: .tf_template stage: test script: - gitlab-terraform validate - gitlab-terraform fmt - gitlab-tofu validate - gitlab-tofu fmt .tf_plan: extends: .tf_template script: - gitlab-terraform plan - gitlab-terraform plan-json - gitlab-tofu plan - gitlab-tofu plan-json artifacts: name: plan paths: Loading @@ -55,5 +55,5 @@ include: .tf_apply: extends: .tf_template script: - gitlab-terraform apply - gitlab-tofu apply when: manual Loading
templates/terraform.yml +9 −9 Original line number Diff line number Diff line Loading @@ -5,10 +5,10 @@ include: .tf_template: image: registry.gitlab.com/gitlab-org/terraform-images/stable:latest image: registry.gitlab.com/components/opentofu/gitlab-opentofu:latest-debian before_script: - cd ${TF_ROOT} - terraform version - tofu version cache: paths: - ${TF_ROOT}/.terraform Loading @@ -25,26 +25,26 @@ include: extends: .tf_template stage: test script: - gitlab-terraform validate - gitlab-tofu validate .tf_fmt: extends: .tf_template stage: test script: - gitlab-terraform fmt - gitlab-tofu fmt .tf_validate_fmt: extends: .tf_template stage: test script: - gitlab-terraform validate - gitlab-terraform fmt - gitlab-tofu validate - gitlab-tofu fmt .tf_plan: extends: .tf_template script: - gitlab-terraform plan - gitlab-terraform plan-json - gitlab-tofu plan - gitlab-tofu plan-json artifacts: name: plan paths: Loading @@ -55,5 +55,5 @@ include: .tf_apply: extends: .tf_template script: - gitlab-terraform apply - gitlab-tofu apply when: manual