Skip to content

Commit

Permalink
reverted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertbarton committed Jun 12, 2019
1 parent e7d5c80 commit c3d6547
Showing 1 changed file with 42 additions and 48 deletions.
90 changes: 42 additions & 48 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -81,11 +81,9 @@ jobs:

- run: yarn build

- run: ls -at

- persist_to_workspace:
root: ~/repo/
paths: ./build/
root: ~/
paths: .

deploy_to_staging:
docker:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit c3d6547

Please sign in to comment.