2017-08-25 19:07:02 +00:00
|
|
|
# SSH
|
2018-04-04 20:25:13 +00:00
|
|
|
|
2017-08-25 19:07:02 +00:00
|
|
|
npmci allows easy usage of ssh:
|
|
|
|
|
|
|
|
## Add the SSH KEY to the environment
|
|
|
|
|
|
|
|
To make npmci aware of any SSH KEY add it to the environment in the following format
|
2018-04-04 20:25:13 +00:00
|
|
|
|
2017-08-25 19:07:02 +00:00
|
|
|
```
|
|
|
|
# Key
|
|
|
|
NPMCI_SSHKEY_[A_NAME_FROM_YOU]
|
|
|
|
# Value:
|
|
|
|
[targeted host]|[privatekey as base64]|***
|
|
|
|
```
|
|
|
|
|
|
|
|
## Use npmci cli tool in your ci script
|
2018-04-04 20:25:13 +00:00
|
|
|
|
2017-08-25 19:07:02 +00:00
|
|
|
```
|
|
|
|
npmci prepare ssh
|
|
|
|
npmci command git remote add heroku ssh://git@heroku.com/[you project name].git
|
|
|
|
npmci command git push heroku master
|
|
|
|
```
|