Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Set TRAVIS_COMMIT if unset (#1422)
Browse files Browse the repository at this point in the history
Allow `scripts/deploy.sh` to be run locally by setting environment
variables usually supplied by Traivs
  • Loading branch information
gdbelvin committed Jan 3, 2020
1 parent e5421fb commit 850d311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Expand Up @@ -25,7 +25,7 @@ set -eufx
export PROJECT_NAME_CI=key-transparency
export CLOUDSDK_COMPUTE_ZONE=us-central1-a
export CLUSTER_NAME_CI=ci-cluster

export TRAVIS_COMMIT=${TRAVIS_COMMIT:-$(git rev-parse HEAD)}

gcloud --quiet config set project ${PROJECT_NAME_CI}
gcloud --quiet config set compute/zone ${CLOUDSDK_COMPUTE_ZONE}
Expand Down

0 comments on commit 850d311

Please sign in to comment.