ssh/.github/main.workflow

46 lines
739 B
Text
Raw Normal View History

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