Skip to content

Instantly share code, notes, and snippets.

View dezmaeth's full-sized avatar

Francisco Henseleit dezmaeth

View GitHub Profile
@dezmaeth
dezmaeth / semaphore_ci_gcloud_prepare.sh
Last active February 26, 2018 18:19
Install gcloud and kubectl on semaphore-ci
#!/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