fix stage links for GKE stage (#1514)

This commit is contained in:
Ludovico Magnocavallo 2023-07-20 10:48:45 +00:00 committed by GitHub
parent cb560064ca
commit ea800fa475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ case $STAGE_NAME in
echo "no stage found, trying for parent stage 3..." echo "no stage found, trying for parent stage 3..."
STAGE_NAME=$(basename $(dirname "$(pwd)")) STAGE_NAME=$(basename $(dirname "$(pwd)"))
if [[ "$STAGE_NAME" == "3-"* ]]; then if [[ "$STAGE_NAME" == "3-"* ]]; then
if [[ "$STAGE_NAME" == "3-gke-multitenant"* ]]; then
STAGE_NAME="3-gke"
fi
SUFFIX=$(basename "$(pwd)")
STAGE_NAME="${STAGE_NAME}-$SUFFIX"
PROVIDER="providers/${STAGE_NAME}-providers.tf" PROVIDER="providers/${STAGE_NAME}-providers.tf"
TFVARS="tfvars/0-bootstrap.auto.tfvars.json TFVARS="tfvars/0-bootstrap.auto.tfvars.json
tfvars/1-resman.auto.tfvars.json tfvars/1-resman.auto.tfvars.json