updated gcp_ci.sh

pull/2/head
Hari Sekhon 4 years ago
parent 3cbfd23351
commit 69248ae742

@ -82,7 +82,8 @@ printenv(){
# do not use the same serviceaccount with permissions across projects, you can cross contaminate and make mistakes, deploy the wrong environment etc.
gcp_login(){
local credentials_json="${1:-}"
if ! [ -f "$credentials_json" ]; then
if [ -z "$credentials_json" ] ||
! [ -f "$credentials_json" ]; then
# XXX: it's hard to copy the contents of this around so it's easiest to do via:
#
# base64 credentials.json | pbcopy

Loading…
Cancel
Save