Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit d748c79a authored by Nicolas's avatar Nicolas
Browse files

Use Gitlab Terraform state

parent b17fa59f
No related branches found
No related tags found
No related merge requests found
image: busybox:latest
cache:
key: manifests-elastic
paths:
- ${TF_ROOT}/.terraform
# docs: https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html#get-started-using-gitlab-ci
elastic:
stage: deploy
tags:
......@@ -8,10 +14,13 @@ elastic:
image: 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 ./manifests/elastic
- cd ${TF_ROOT}
- terraform init
- terraform validate
- terraform fmt -check
- terraform plan
- terraform apply -auto-approve
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment