Authenticate before pushing to GCP

This commit is contained in:
Zakary Timson 2019-04-11 17:07:47 -04:00
parent c2f6d03243
commit 9921cb452d

View File

@ -48,6 +48,12 @@ jobs:
- attach_workspace:
at: ./
- run:
name: Authenticate GCP
command: |
echo $GCLOUD_SERVICE_KEY > key.json
gcloud auth activate-service-account --key-file key.json
- run:
name: Deploy
command: gsutil cp -r dist/ZaksCode/* gs://staging.zaks-code.appspot.com
@ -64,6 +70,12 @@ jobs:
- attach_workspace:
at: ./
- run:
name: Authenticate GCP
command: |
echo $GCLOUD_SERVICE_KEY > key.json
gcloud auth activate-service-account --key-file key.json
- run:
name: Depoly
command: gsutil cp -r dist/ZaksCode/* gs://zaks-code.appspot.com