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 2e39259f authored by Nicolas's avatar Nicolas
Browse files

refactoring: delete cache

parent 378a3b55
No related branches found
No related tags found
No related merge requests found
image: busybox:latest image: busybox:latest
variables:
TF_ROOT_ELASTIC: ${CI_PROJECT_DIR}/manifests/elastic
TF_ROOT_MAGENTO: ${CI_PROJECT_DIR}/manifests/magento
cache:
key: manifests-elastic
paths:
- ${TF_ROOT_ELASTIC}/.terraform
# docs: https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html#get-started-using-gitlab-ci # docs: https://docs.gitlab.com/ee/user/infrastructure/iac/terraform_state.html#get-started-using-gitlab-ci
terraform-elastic: terraform-elastic:
stage: deploy stage: deploy
...@@ -18,10 +9,11 @@ terraform-elastic: ...@@ -18,10 +9,11 @@ terraform-elastic:
name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
entrypoint: [""] entrypoint: [""]
variables: variables:
TF_ROOT: ${CI_PROJECT_DIR}/manifests/elastic
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/elastic TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/elastic
TF_VAR_ec_apikey: $EC_API_KEY TF_VAR_ec_apikey: $EC_API_KEY
script: |- script: |-
cd $TF_ROOT_ELASTIC cd $TF_ROOT
gitlab-terraform init gitlab-terraform init
gitlab-terraform validate gitlab-terraform validate
gitlab-terraform fmt -check gitlab-terraform fmt -check
...@@ -37,12 +29,13 @@ terraform-magento: ...@@ -37,12 +29,13 @@ terraform-magento:
name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
entrypoint: [""] entrypoint: [""]
variables: variables:
TF_ROOT: ${CI_PROJECT_DIR}/manifests/magento
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/magento TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/magento
TF_VAR_ec_apikey: $EC_API_KEY TF_VAR_ec_apikey: $EC_API_KEY
TF_VAR_project_id: $GCP_PROJECT_ID TF_VAR_project_id: $GCP_PROJECT_ID
GCP_SA_GITLAB: $GCP_SA_GITLAB GCP_SA_GITLAB: $GCP_SA_GITLAB
script: |- script: |-
cd $TF_ROOT_MAGENTO cd $TF_ROOT
echo $GCP_SA_GITLAB > gcp-sa.json echo $GCP_SA_GITLAB > gcp-sa.json
ls -l ls -l
gitlab-terraform init gitlab-terraform init
......
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