|
|
|
@ -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
|
|
|
|
|