Compare commits

..

3 Commits

Author SHA1 Message Date
30e16cb33d 2.4.7 2017-08-25 21:07:04 +02:00
16984d811f fix tests 2017-08-25 21:07:02 +02:00
12e2509f0c 2.4.6 2017-08-25 19:30:10 +02:00
3 changed files with 26 additions and 7 deletions

19
docs/ssh.md Normal file
View 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
```

View File

@@ -1,6 +1,6 @@
{
"name": "npmci",
"version": "2.4.5",
"version": "2.4.7",
"description": "node and docker in gitlab ci on steroids",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@@ -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