mirror of
https://github.com/appleboy/ssh-action.git
synced 2024-12-19 20:29:05 +00:00
46 lines
739 B
HCL
46 lines
739 B
HCL
workflow "Remote ssh commands" {
|
|
on = "push"
|
|
resolves = [
|
|
"Executing remote ssh commands",
|
|
"Support Private Key",
|
|
"Multiple Commands",
|
|
]
|
|
}
|
|
|
|
action "Executing remote ssh commands" {
|
|
uses = "appleboy/ssh-action@master"
|
|
secrets = [
|
|
"HOST",
|
|
"PASSWORD",
|
|
]
|
|
args = [
|
|
"--user", "actions",
|
|
"--script", "whoami",
|
|
]
|
|
}
|
|
|
|
action "Support Private Key" {
|
|
uses = "appleboy/ssh-action@master"
|
|
secrets = [
|
|
"HOST",
|
|
"KEY",
|
|
]
|
|
args = [
|
|
"--user", "actions",
|
|
"--script", "'ls -al'",
|
|
]
|
|
}
|
|
|
|
action "Multiple Commands" {
|
|
uses = "appleboy/ssh-action@master"
|
|
secrets = [
|
|
"HOST",
|
|
"KEY",
|
|
]
|
|
args = [
|
|
"--user", "actions",
|
|
"--script", "'whoami'",
|
|
"--script", "'ls -al'",
|
|
]
|
|
}
|