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

feat: Add destroy GKE

parent 5e00467f
No related branches found
No related tags found
No related merge requests found
......@@ -228,29 +228,29 @@ destroy-elastic:
gitlab-terraform init
gitlab-terraform destroy -auto-approve
#destroy-gke:
# stage: destroy
# needs:
# - destroy-psc
# tags:
# - docker
# - amd64
# image:
# name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
# entrypoint: [""]
# variables:
# TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/gke
# TF_VAR_ec_apikey: $EC_API_KEY
# TF_VAR_project_id: $GCP_PROJECT_ID
# TF_VAR_region: $GCP_REGION
# TF_VAR_vpc_network_name: $GCP_NETWORK_NAME
# TF_VAR_vpc_subnetwork_name: $GCP_SUBNETWORK_NAME
# GCP_SA: $GCP_SA
# before_script:
# - |
# cd $TF_ROOT_GKE
# echo $GCP_SA > gcp-sa.json
# script:
# - |
# gitlab-terraform init
# gitlab-terraform destroy -auto-approve
\ No newline at end of file
destroy-gke:
stage: destroy
needs:
- destroy-psc
tags:
- docker
- amd64
image:
name: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
entrypoint: [""]
variables:
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/gke
TF_VAR_ec_apikey: $EC_API_KEY
TF_VAR_project_id: $GCP_PROJECT_ID
TF_VAR_region: $GCP_REGION
TF_VAR_vpc_network_name: $GCP_NETWORK_NAME
TF_VAR_vpc_subnetwork_name: $GCP_SUBNETWORK_NAME
GCP_SA: $GCP_SA
before_script:
- |
cd $TF_ROOT_GKE
echo $GCP_SA > gcp-sa.json
script:
- |
gitlab-terraform init
gitlab-terraform destroy -auto-approve
\ No newline at end of file
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