ssh-action/.github/main.workflow

46 lines
739 B
Plaintext
Raw Normal View History

2019-05-14 22:47:53 +00:00
workflow "Remote ssh commands" {
on = "push"
resolves = [
"Executing remote ssh commands",
2019-05-14 22:47:53 +00:00
"Support Private Key",
2019-05-14 22:52:59 +00:00
"Multiple Commands",
]
}
action "Executing remote ssh commands" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"PASSWORD",
]
args = [
"--user", "actions",
"--script", "whoami",
]
}
2019-05-14 22:47:53 +00:00
action "Support Private Key" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"KEY",
]
args = [
"--user", "actions",
2019-05-14 22:50:16 +00:00
"--script", "'ls -al'",
2019-05-14 22:47:53 +00:00
]
}
2019-05-14 22:52:59 +00:00
action "Multiple Commands" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"KEY",
]
args = [
"--user", "actions",
"--script", "'whoami'",
"--script", "'ls -al'",
]
}