This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage: | |
## IMPORTANT: GCLOUD_VERSION env variable set before running ex: export GCLOUD_VERSION=190.0.1 | |
## curl https://gist.githubusercontent.com/dezmaeth/69af9ef1fc28989eda9dc6e0f91b2dfc/raw/semaphore_ci_gcloud_prepare.sh | sh | |
export PATH=$SEMAPHORE_CACHE_DIR/google-cloud-sdk/bin:$PATH | |
if [ ! -f "$SEMAPHORE_CACHE_DIR/google-cloud-sdk/bin/gcloud" ] | |
then |