From 799f6b8001a5d3590fb9cafbd99c978b70b103e8 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Thu, 11 Apr 2019 21:56:36 -0400 Subject: [PATCH 1/2] Updated config to push to production --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8217c41..c35aa83 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -78,7 +78,7 @@ jobs: - run: name: Depoly - command: gsutil cp -r dist/ZaksCode/* gs://zaks-code.appspot.com + command: gsutil cp -r dist/ZaksCode/* gs://www.zakscode.com workflows: version: 2 From f3b6d286230b346cac3716cef601a43e8b2f5b8b Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Thu, 11 Apr 2019 22:00:11 -0400 Subject: [PATCH 2/2] Only deploy master to production site --- .circleci/config.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c35aa83..8c3bca3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,28 +56,6 @@ jobs: - run: name: Deploy - command: gsutil cp -r dist/ZaksCode/* gs://staging.zakscode.com - - deploy-prod: - docker: - - image: google/cloud-sdk:latest - - working_directory: ~/repo - - steps: - - checkout - - - 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://www.zakscode.com workflows: @@ -92,9 +70,3 @@ workflows: filters: branches: only: master - - deploy-prod: - requires: - - build - filters: - branches: - only: production