mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
[ci skip] Merge pull request #24 from drone-plugins/docs
remove secret section
This commit is contained in:
commit
6ea42a60e0
19
DOCS.md
19
DOCS.md
@ -24,25 +24,6 @@ The following secret values can be set to configure the plugin.
|
|||||||
* **SSH_SLEEP** - corresponds to **sleep**
|
* **SSH_SLEEP** - corresponds to **sleep**
|
||||||
* **SSH_TIMEOUT** - corresponds to **timeout**
|
* **SSH_TIMEOUT** - corresponds to **timeout**
|
||||||
|
|
||||||
It is highly recommended to put the **SSH_KEY** and **SSH_PASSWORD** into a secret so it is not
|
|
||||||
exposed to users. This can be done using the drone-cli.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
drone secret add --image=plugins/ssh \
|
|
||||||
octocat/hello-world SSH_KEY @path/to/.ssh/id_rsa
|
|
||||||
drone secret add --image=plugins/ssh \
|
|
||||||
octocat/hello-world SSH_PASSWORD admin1234
|
|
||||||
```
|
|
||||||
|
|
||||||
Then sign the YAML file after all secrets are added.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
drone sign octocat/hello-world
|
|
||||||
```
|
|
||||||
|
|
||||||
See [secrets](http://readme.drone.io/0.5/usage/secrets/) for additional
|
|
||||||
information on secrets
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Example configuration in your .drone.yml file for a single host:
|
Example configuration in your .drone.yml file for a single host:
|
||||||
|
Loading…
Reference in New Issue
Block a user