File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ workflow "Remote ssh commands" {
33 resolves = [
44 " Executing remote ssh commands" ,
55 " Support Private Key" ,
6+ " Multiple Commands" ,
67 ]
78}
89
@@ -29,3 +30,16 @@ action "Support Private Key" {
2930 " --script" , " 'ls -al'" ,
3031 ]
3132}
33+
34+ action "Multiple Commands" {
35+ uses = " appleboy/ssh-action@master"
36+ secrets = [
37+ " HOST" ,
38+ " KEY" ,
39+ ]
40+ args = [
41+ " --user" , " actions" ,
42+ " --script" , " 'whoami'" ,
43+ " --script" , " 'ls -al'" ,
44+ ]
45+ }
Original file line number Diff line number Diff line change @@ -65,6 +65,23 @@ action "Support Private Key" {
6565}
6666```
6767
68+ Multiple Commands
69+
70+ ```
71+ action "Multiple Commands" {
72+ uses = "appleboy/ssh-action@master"
73+ secrets = [
74+ "HOST",
75+ "KEY",
76+ ]
77+ args = [
78+ "--user", "actions",
79+ "--script", "'whoami'",
80+ "--script", "'ls -al'",
81+ ]
82+ }
83+ ```
84+
6885see the detail of ` drone-ssh ` command
6986
7087```
You can’t perform that action at this time.
0 commit comments