diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8166ae34ee465edd3e57146b63526628abf41fc..9865b488ae6d793286ed32e69315ab9b6a23cbd9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,9 @@ image: busybox:latest +variables: + TF_ROOT: ${CI_PROJECT_DIR}/manifests/elastic + TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/manifests/elastic + cache: key: manifests-elastic paths: @@ -14,8 +18,6 @@ elastic: name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest entrypoint: [""] variables: - TF_ROOT: ${CI_PROJECT_DIR}/manifests/elastic - TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/manifests/elastic TF_VAR_ec_apikey: $EC_API_KEY script: - cd ${TF_ROOT}