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

feat: Secure GCP SA

parent 83dbb22f
No related branches found
No related tags found
No related merge requests found
......@@ -194,6 +194,7 @@ destroy-psc:
entrypoint: [""]
variables:
GCP_PROJECT_ID: $GCP_PROJECT_ID
GCP_SA: $GCP_SA
GCP_REGION: $GCP_REGION
GCP_NETWORK_NAME: $GCP_NETWORK_NAME
GCP_SUBNETWORK_NAME: $GCP_SUBNETWORK_NAME
......@@ -205,7 +206,7 @@ destroy-psc:
before_script:
- |
printenv
echo $GCP_SA | base64 -di > gcp-sa.json
echo "$GCP_SA" | base64 -di > gcp-sa.json
gcloud auth activate-service-account --key-file gcp-sa.json
echo "Activate Service Account: OK"
gcloud config set project $GCP_PROJECT_ID
......@@ -262,7 +263,7 @@ destroy-gke:
before_script:
- |
cd $TF_ROOT_GKE
echo $GCP_SA | base64 -di > gcp-sa.json
echo "$GCP_SA" | base64 -di > gcp-sa.json
script:
- |
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