mirror of
https://github.com/appleboy/scp-action.git
synced 2024-11-15 06:28:07 +00:00
34 lines
575 B
HCL
34 lines
575 B
HCL
workflow "Copy File Via SSH" {
|
|
on = "push"
|
|
resolves = [
|
|
"Copy file via ssh password",
|
|
"Copy file via ssh key",
|
|
]
|
|
}
|
|
|
|
action "Copy file via ssh password" {
|
|
uses = "appleboy/scp-action@master"
|
|
env = {
|
|
SOURCE = "tests/a.txt,tests/b.txt"
|
|
TARGET = "/home/actions/test"
|
|
}
|
|
secrets = [
|
|
"HOST",
|
|
"USERNAME",
|
|
"PASSWORD",
|
|
]
|
|
}
|
|
|
|
action "Copy file via ssh key" {
|
|
uses = "appleboy/scp-action@master"
|
|
env = {
|
|
SOURCE = "tests/a.txt,tests/b.txt"
|
|
TARGET = "/home/actions/test"
|
|
}
|
|
secrets = [
|
|
"HOST",
|
|
"USERNAME",
|
|
"KEY",
|
|
]
|
|
}
|