Commit 35ed3748 authored by Thomas Boni's avatar Thomas Boni
Browse files

conf(terraform): udpate default value of variables

parent 3bda232f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [0.3.0] - 2021-10-07
## [0.4.0] - 2022-05-12
* Update default value of `TF_ROOT` to make job plug and play

## [0.3.0] - 2022-05-12
* Fix default values of variables

## [0.2.0] - 2021-10-07
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ This job will apply all the changes set by `gitlab-terraform_plan` in the file `

| Name | Description | Default |
| ---- | ----------- | ------- |
| `TF_ROOT` | Directory path to terraform files | `terraform` |
| `TF_ROOT` | Directory path to terraform files | `${CI_PROJECT_DIR}/terraform` |
| `TF_ADDRESS` | Address to terraform state backend | `${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/main` |

### Artifacts
+3 −3
Original line number Diff line number Diff line
@@ -14,14 +14,14 @@ gitlab-terraform_apply:
  stage: deploy
  image: registry.gitlab.com/gitlab-org/terraform-images/releases/1.0:v0.20.0
  variables:
    TF_ROOT: "terraform"
    TF_ROOT: ${CI_PROJECT_DIR}/terraform
    TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/main
  script:
    - cd ${CI_PROJECT_DIR}/${TF_ROOT}
    - cd ${TF_ROOT}
    - gitlab-terraform apply
  artifacts:
    when: always
    expose_as: "Terraform apply artifact"
    paths:
      - "${CI_PROJECT_DIR}/${TF_ROOT}/output.log"
      - "${TF_ROOT}/output.log"
  when: manual
+4 −1
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [0.3.0] - 2021-10-07
## [0.4.0] - 2022-05-12
* Update default value of `TF_ROOT` to make job plug and play

## [0.3.0] - 2022-05-12
* Fix default values of variables

## [0.2.0] - 2021-10-07
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ This job will initialize a working directory containing Terraform configuration

| Name | Description | Default |
| ---- | ----------- | ------- |
| `TF_ROOT` | Directory path to terraform files | `terraform` |
| `TF_ROOT` | Directory path to terraform files | `${CI_PROJECT_DIR}/terraform` |
| `TF_ADDRESS` | Address to terraform state backend | `${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/main` |
| `INIT_OPTIONS` | Additional options to terraform CLI init | ` ` |

Loading