| 
									
										
										
										
											2017-08-25 21:07:02 +02:00
										 |  |  | # SSH
 | 
					
						
							| 
									
										
										
										
											2018-04-04 22:25:13 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-25 21:07:02 +02: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 22:25:13 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-25 21:07:02 +02: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 22:25:13 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-25 21:07:02 +02:00
										 |  |  | ``` | 
					
						
							|  |  |  | npmci prepare ssh | 
					
						
							|  |  |  | npmci command git remote add heroku ssh://git@heroku.com/[you project name].git | 
					
						
							|  |  |  | npmci command git push heroku master | 
					
						
							|  |  |  | ``` |