Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 30e16cb33d | |||
| 16984d811f |
19
docs/ssh.md
Normal file
19
docs/ssh.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# SSH
|
||||
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
|
||||
```
|
||||
# Key
|
||||
NPMCI_SSHKEY_[A_NAME_FROM_YOU]
|
||||
# Value:
|
||||
[targeted host]|[privatekey as base64]|***
|
||||
```
|
||||
|
||||
## Use npmci cli tool in your ci script
|
||||
```
|
||||
npmci prepare ssh
|
||||
npmci command git remote add heroku ssh://git@heroku.com/[you project name].git
|
||||
npmci command git push heroku master
|
||||
```
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "npmci",
|
||||
"version": "2.4.6",
|
||||
"version": "2.4.7",
|
||||
"description": "node and docker in gitlab ci on steroids",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
||||
12
test/test.ts
12
test/test.ts
@@ -10,12 +10,12 @@ process.cwd = () => {
|
||||
}
|
||||
|
||||
// require NPMCI files
|
||||
import '../dist/index'
|
||||
import NpmciBuildDocker = require('../dist/mod_docker/index')
|
||||
import NpmciPublish = require('../dist/mod_publish/index')
|
||||
import NpmciTest = require('../dist/mod_test/index')
|
||||
import NpmciSsh = require('../dist/mod_ssh/index')
|
||||
import NpmciEnv = require('../dist/npmci.env')
|
||||
import '../ts/index'
|
||||
import NpmciBuildDocker = require('../ts/mod_docker/index')
|
||||
import NpmciPublish = require('../ts/mod_publish/index')
|
||||
import NpmciTest = require('../ts/mod_test/index')
|
||||
import NpmciSsh = require('../ts/mod_ssh/index')
|
||||
import NpmciEnv = require('../ts/npmci.env')
|
||||
|
||||
let dockerfile1: NpmciBuildDocker.Dockerfile
|
||||
let dockerfile2: NpmciBuildDocker.Dockerfile
|
||||
|
||||
Reference in New Issue
Block a user