mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 18:24:01 +08:00
add sleep option
This commit is contained in:
@@ -28,6 +28,7 @@ deploy:
|
||||
- bar.com
|
||||
user: root
|
||||
port: 22
|
||||
sleep: 5
|
||||
commands:
|
||||
- echo hello
|
||||
- echo world
|
||||
@@ -35,6 +36,8 @@ deploy:
|
||||
|
||||
In the above example Drone executes the commands on multiple hosts sequentially. If the commands fail on a single host this plugin exits immediatly, and will not run your commands on the remaining hosts in the list.
|
||||
|
||||
The above example also uses the `sleep` parameter. The sleep parameter instructs Drone to sleep for N seconds between host executions.
|
||||
|
||||
## Keys
|
||||
|
||||
The plugin authenticates to your server using a per-repository SSH key generated by Drone. You can find the public key in your repository settings in Drone. You will need to copy / paste this key into your `~/.ssh/authorized_keys` file on your remote machine.
|
||||
Reference in New Issue
Block a user