Only deploy master to production site
This commit is contained in:
parent
799f6b8001
commit
f3b6d28623
@ -56,28 +56,6 @@ jobs:
|
|||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Deploy
|
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
|
command: gsutil cp -r dist/ZaksCode/* gs://www.zakscode.com
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
@ -92,9 +70,3 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
- deploy-prod:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: production
|
|
||||||
|
Loading…
Reference in New Issue
Block a user