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

Get PSC Connection ID

parent 4c167c59
No related branches found
No related tags found
No related merge requests found
...@@ -139,3 +139,16 @@ gcloud-psc: ...@@ -139,3 +139,16 @@ gcloud-psc:
cd $GCLOUD_ROOT_PSC cd $GCLOUD_ROOT_PSC
chmod +x ./setting-psc.sh chmod +x ./setting-psc.sh
./setting-psc.sh ./setting-psc.sh
artifacts:
paths:
- ${CI_PROJECT_DIR}/pscConnectionId.env
elastic-traffic-filter:
stage: deploy
needs:
- gcloud-psc
tags:
- docker
script: |-
cat ${CI_PROJECT_DIR}/pscConnectionId.env
...@@ -38,3 +38,6 @@ else ...@@ -38,3 +38,6 @@ else
gcloud dns record-sets transaction add $(gcloud compute addresses describe $GCP_INTERNAL_IP_NAME --region=$GCP_REGION --format="get(address)") --name="*.$ELASTIC_DNS_ZONE." --ttl="30" --type="A" --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC" gcloud dns record-sets transaction add $(gcloud compute addresses describe $GCP_INTERNAL_IP_NAME --region=$GCP_REGION --format="get(address)") --name="*.$ELASTIC_DNS_ZONE." --ttl="30" --type="A" --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC"
gcloud dns record-sets transaction execute --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC" gcloud dns record-sets transaction execute --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC"
fi fi
echo "GCP_PSC_CONNECTION_ID=$(gcloud compute forwarding-rules describe $GCP_PSC_NAME --region=$GCP_REGION --format="get(pscConnectionId)")" > pscConnectionId.env
\ 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