1
0
Fork 0
llvm-premerge-checks/setup_k8s.sh
2023-07-17 13:20:05 +02:00

10 lines
No EOL
330 B
Bash
Executable file

# Setups kubernetes with env variables.
echo GCP_PROJECT=$GCP_PROJECT
echo GCP_ZONE=$GCP_ZONE
echo GCP_CLUSTER=$GCP_CLUSTER
gcloud config set project ${GCP_PROJECT}
gcloud config set compute/zone ${GCP_ZONE}
# setup docker for pushing containers
gcloud auth configure-docker
gcloud container clusters get-credentials $GCP_CLUSTER