Ensure Authenticated to GCR when GOOGLE_CREDENTIALS supplied to action (#4812)

This commit is contained in:
Paul Stack 2020-06-12 19:38:50 +01:00 committed by GitHub
parent 481750ec5b
commit 1357be4afb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,10 @@ CHANGELOG
- Fix panic on `pulumi up` prompt after preview when filtering and hitting arrow keys.
[#4808](https://github.com/pulumi/pulumi/pull/4808)
- Ensure GitHub Action authenticates to GCR when `$GOOGLE_CREDENTIALS` specified
[#4812](https://github.com/pulumi/pulumi/pull/4812)
## 2.4.0 (2020-06-10)
- Turn program generation NYIs into diagnostic errors

View file

@ -86,6 +86,7 @@ if [ ! -z "$GOOGLE_CREDENTIALS" ]; then
echo "$GOOGLE_CREDENTIALS" > $GOOGLE_APPLICATION_CREDENTIALS
fi
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
gcloud --quiet auth configure-docker
fi
# Next, run npm install. We always call this, as