Only deploy master to production site
This commit is contained in:
parent
799f6b8001
commit
f3b6d28623
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user