-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7d5c80
commit c3d6547
Showing
1 changed file
with
42 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,49 +9,49 @@ workflows: | |
build: | ||
jobs: | ||
- build_and_test | ||
# - deploy_to_staging: | ||
# requires: | ||
# - build_and_test | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
# - run_e2e_tests: | ||
# requires: | ||
# - deploy_to_staging | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
# - run_performance_tests: | ||
# requires: | ||
# - deploy_to_staging | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
# - hold_production_deploy: | ||
# type: approval | ||
# requires: | ||
# - run_performance_tests | ||
# - run_e2e_tests | ||
# filters: | ||
# branches: | ||
# only: master | ||
- publish_github_release: | ||
- deploy_to_staging: | ||
requires: | ||
- build_and_test | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
# - deploy_to_production: | ||
# requires: | ||
# - hold_production_deploy | ||
# filters: | ||
# branches: | ||
# only: | ||
# - master | ||
- run_e2e_tests: | ||
requires: | ||
- deploy_to_staging | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- run_performance_tests: | ||
requires: | ||
- deploy_to_staging | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- hold_production_deploy: | ||
type: approval | ||
requires: | ||
- run_performance_tests | ||
- run_e2e_tests | ||
filters: | ||
branches: | ||
only: master | ||
- publish_github_release: | ||
requires: | ||
- hold_production_deploy | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- deploy_to_production: | ||
requires: | ||
- hold_production_deploy | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
|
||
jobs: | ||
build_and_test: | ||
|
@@ -81,11 +81,9 @@ jobs: | |
|
||
- run: yarn build | ||
|
||
- run: ls -at | ||
|
||
- persist_to_workspace: | ||
root: ~/repo/ | ||
paths: ./build/ | ||
root: ~/ | ||
paths: . | ||
|
||
deploy_to_staging: | ||
docker: | ||
|
@@ -143,16 +141,12 @@ jobs: | |
at: ~/ | ||
|
||
- run: | | ||
ls -at | ||
cd .. | ||
ls -at | ||
go get -u github.com/tcnksm/ghr | ||
git config user.email "[email protected]" | ||
git config user.name "rupertbarton" | ||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete $(npm version minor -m "Updated version number [ci skip]") | ||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete $(npm version minor -m "Updated version number [ci skip]") ./build/ | ||
git push | ||
deploy_to_production: | ||
docker: | ||
- image: circleci/node:10.15.1 | ||
|
@@ -163,4 +157,4 @@ jobs: | |
- attach_workspace: | ||
at: ~/ | ||
|
||
- run: npx surge build/ https://rupert-ci-cd-production.surge.sh | ||
- run: npx surge build/ https://rupert-ci-cd-production.surge.sh |