Skip to content

Commit

Permalink
Deploy canary registry for master branch (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz authored Jan 31, 2018
1 parent 9ba6116 commit 946ac61
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ jobs:
key: v5-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: SYNCANO_AUTH_KEY=${REGISTRY_TEST_SYNCANO_AUTH_KEY} ../cli/lib/cli.js instance delete ${REGISTRY_TEST_SYNCANO_PROJECT_INSTANCE}-${CIRCLE_SHA1}

deploy_canary_registry:
name: Deploy Test Registry
docker:
- image: circleci/node:latest

working_directory: ~/repo/packages/registry

steps:
- restore_cache:
key: v5-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: sh ./bin/deploy-canary

publish:
name: Publish packages to NPM
docker:
Expand Down Expand Up @@ -463,3 +475,9 @@ workflows:
filters:
branches:
only: /\d/
- deploy_canary_registry:
requires:
- publish
filters:
branches:
only: master
7 changes: 7 additions & 0 deletions packages/registry/bin/deploy-canary
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

export SYNCANO_AUTH_KEY=$REGISTRY_TEST_SYNCANO_AUTH_KEY
export SYNCANO_PROJECT_INSTANCE=registry-0
npx s deploy

exit $?

0 comments on commit 946ac61

Please sign in to comment.