Commit 3bda232f authored by Thomas Boni's avatar Thomas Boni
Browse files

fix(terraform jobs): fix terraform jobs variables

parent efaac6de
Loading
Loading
Loading
Loading
+5 −2
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
* Fix default values of variables

## [0.2.0] - 2021-10-07
* Update the docker image used

+3 −3
Original line number Diff line number Diff line
@@ -33,7 +33,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_ADDRESS` | Directory path to terraform state files | `terraform` |
| `TF_ADDRESS` | Address to terraform state backend | `${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/main` |

### Artifacts

+6 −8
Original line number Diff line number Diff line
@@ -13,17 +13,15 @@ cache:
gitlab-terraform_apply:
  stage: deploy
  image: registry.gitlab.com/gitlab-org/terraform-images/releases/1.0:v0.20.0

  variables:
    TF_ADDRESS: ""

    TF_ROOT: "terraform"
    TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/main
  script:
    - cd ${CI_PROJECT_DIR}/${TF_ROOT}
    - gitlab-terraform apply

  artifacts:
    when: always
    expose_as: "Terraform Apply artifact"
    expose_as: "Terraform apply artifact"
    paths:
      - plan.cache
      - "${CI_PROJECT_DIR}/${TF_ROOT}/output.log"
  when: manual
+5 −2
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
* Fix default values of variables

## [0.2.0] - 2021-10-07
* Update the docker image used

+2 −3
Original line number Diff line number Diff line
@@ -32,9 +32,8 @@ This job will initialize a working directory containing Terraform configuration
| Name | Description | Default |
| ---- | ----------- | ------- |
| `TF_ROOT` | Directory path to terraform files | `terraform` |
| `TF_ADDRESS` | Directory path to terraform state files | `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 | ` ` |
| `PLAN_JSON` | Allow report into plan.json if set to true | ` ` |

### Artifacts

Loading