Skip to content

Commit

Permalink
chore(): proper deploy keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz committed Feb 9, 2018
1 parent 57263ee commit cacb2c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ jobs:
steps:
- restore_cache:
key: v5-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: echo 'export SYNCANO_AUTH_KEY=${CANARY_SYNCANO_AUTH_KEY}' >> $BASH_ENV
- run: echo 'export SYNCANO_AUTH_KEY=${REGISTRY_PRODUCTION_SYNCANO_AUTH_KEY}' >> $BASH_ENV
- run: echo 'export SYNCANO_PROJECT_INSTANCE=syncano-docs-${CIRCLE_BRANCH}' >> $BASH_ENV
- run: node packages/cli/lib/cli.js deploy
- run: node packages/cli/lib/cli.js hosting sync docs
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class Session {
echo(4)(`Type ${format.cyan('syncano-cli attach')} to choose one of the existing instances.`)
echo()
}
process.exit()
process.exit(1)
}

return instance
Expand Down
2 changes: 1 addition & 1 deletion packages/registry/bin/deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

export SYNCANO_AUTH_KEY=$REGISTRY_PRODUCTION_SYNCANO_AUTH_KEY
export SYNCANO_AUTH_KEY=$PRODUCTION_SYNCANO_AUTH_KEY
export SYNCANO_PROJECT_INSTANCE=registry-$CIRCLE_BRANCH
../cli/lib/cli.js deploy

Expand Down

0 comments on commit cacb2c2

Please sign in to comment.