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

refactoring: Add version in variable

parent a488790f
No related branches found
No related tags found
No related merge requests found
Pipeline #3701 failed
......@@ -83,7 +83,6 @@ apply-gke:
gitlab-terraform init
gitlab-terraform apply -auto-approve
gcloud-psc:
stage: psc
needs:
......@@ -134,6 +133,7 @@ check-elastic:
variables:
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/elastic
TF_VAR_ec_apikey: $EC_API_KEY
TF_var_ec_version: $EC_VERSION
before_script:
- |
export TF_VAR_psc_connection_id=$(cat ${CI_PROJECT_DIR}/pscConnectionId.env | grep GCP_PSC_CONNECTION_ID | cut -d = -f2)
......
......@@ -15,7 +15,7 @@ provider "ec" {
}
data "ec_stack" "stack" {
version_regex = "7.16.1"
version_regex = var.ec_version
region = var.region
}
......
......@@ -16,3 +16,7 @@ variable "cluster_name" {
type = string
default = "elastic-for-gke"
}
variable "ec_version" {
type = string
}
\ 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