mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
Update document for mount key path. (#100)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
6f1ace35bf
commit
2d5668ff17
23
README.md
23
README.md
@ -50,3 +50,26 @@ docker run --rm \
|
|||||||
-w $(pwd) \
|
-w $(pwd) \
|
||||||
appleboy/drone-ssh
|
appleboy/drone-ssh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Mount key from file path
|
||||||
|
|
||||||
|
Please make sure that enable the `trusted` mode in project setting.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Mount private key in `volumes` setting of `.drone.yml` config
|
||||||
|
|
||||||
|
```diff
|
||||||
|
pipeline:
|
||||||
|
ssh:
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
host: xxxxx.com
|
||||||
|
username: deploy
|
||||||
|
+ volumes:
|
||||||
|
+ - /root/drone_rsa:/root/ssh/drone_rsa
|
||||||
|
key_path: /root/ssh/drone_rsa
|
||||||
|
script:
|
||||||
|
- echo "test ssh"
|
||||||
|
```
|
||||||
|
|
||||||
|
See the detail of [issue comment](https://github.com/appleboy/drone-ssh/issues/51#issuecomment-336732928).
|
||||||
|
BIN
screenshot/trust.png
Normal file
BIN
screenshot/trust.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Loading…
Reference in New Issue
Block a user