1
0
Fork 0
llvm-premerge-checks/setup_k8s.sh

10 lines
330 B
Bash
Raw Normal View History

# 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