From 9921cb452d6b1fe48298ceb6a449da5474cae6fa Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 11 Apr 2019 17:07:47 -0400 Subject: [PATCH] Authenticate before pushing to GCP --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b65396c..a3fa7d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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