add option for npm access level
This commit is contained in:
@ -1,13 +1,16 @@
|
||||
# npmci
|
||||
|
||||
node and docker in gitlab ci on steroids
|
||||
|
||||
## Availabililty
|
||||
|
||||
[](https://www.npmjs.com/package/npmci)
|
||||
[](https://GitLab.com/gitzone/npmci)
|
||||
[](https://github.com/gitzone/npmci)
|
||||
[](https://gitzone.gitlab.io/npmci/)
|
||||
|
||||
## Status for master
|
||||
|
||||
[](https://GitLab.com/gitzone/npmci/commits/master)
|
||||
[](https://GitLab.com/gitzone/npmci/commits/master)
|
||||
[](https://www.npmjs.com/package/npmci)
|
||||
@ -19,6 +22,7 @@ node and docker in gitlab ci on steroids
|
||||
[](http://standardjs.com/)
|
||||
|
||||
## Usage
|
||||
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
npmci is designed to work in docker CI environments. The following docker images come with npmci presinstalled:
|
||||
@ -26,11 +30,12 @@ npmci is designed to work in docker CI environments. The following docker images
|
||||
Docker Hub:
|
||||
|
||||
* [hosttoday/ht-docker-node:npmci](https://hub.docker.com/r/hosttoday/ht-docker-node/)
|
||||
has LTS node version and npmci preinstalled.
|
||||
has LTS node version and npmci preinstalled.
|
||||
* [hosttoday/ht-docker-dbase](https://hub.docker.com/r/hosttoday/ht-docker-dbase/)
|
||||
based on docker:git, can be used to build docker images in conjunction with docker:dind
|
||||
based on docker:git, can be used to build docker images in conjunction with docker:dind
|
||||
|
||||
npmci can be called from commandline:
|
||||
|
||||
```shell
|
||||
# Install any node version:
|
||||
npmci install lts # will install latest LTS node version and update PATH for node and npm versions
|
||||
@ -68,32 +73,28 @@ npmci trigger # will look for NPMCI_TRIGGER_1 to NPMCI_TRIGGER_100 in form domai
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
npmci supports the use of npmextra.
|
||||
|
||||
To configure npmci create a `npmextra.json` file at the root of your project
|
||||
|
||||
```json
|
||||
{
|
||||
"npmci": {
|
||||
"globalNpmTools": [
|
||||
"npm-check-updates",
|
||||
"protractor",
|
||||
"npmts",
|
||||
"gitzone"
|
||||
]
|
||||
}
|
||||
"npmci": {
|
||||
"globalNpmTools": ["npm-check-updates", "protractor", "npmts", "gitzone"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Available options**
|
||||
|
||||
setting | example | description
|
||||
--- | --- | ---
|
||||
globalNpmTools | "globalNpmTools": ["gitbook"] | Will look for the specified package names locally and (if not yet present) install them from npm.
|
||||
| setting | example | description |
|
||||
| -------------- | ----------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| globalNpmTools | "globalNpmTools": ["gitbook"] | Will look for the specified package names locally and (if not yet present) install them from npm. |
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://push.rocks)
|
||||
|
@ -1,9 +1,11 @@
|
||||
# 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]
|
||||
@ -12,6 +14,7 @@ NPMCI_SSHKEY_[A_NAME_FROM_YOU]
|
||||
```
|
||||
|
||||
## 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
|
||||
|
Reference in New Issue
Block a user