17 lines
408 B
Plaintext
17 lines
408 B
Plaintext
load("@this//:from-secret.star", "fromSecret")
|
|
|
|
def clear(folder):
|
|
return {
|
|
"name": "clear",
|
|
"image": "appleboy/drone-ssh",
|
|
"settings": {
|
|
"host": fromSecret("ssh-host"),
|
|
"port": fromSecret("ssh-port"),
|
|
"username": fromSecret("ssh-user"),
|
|
"password": fromSecret("ssh-password"),
|
|
"script": [
|
|
"rm -r -f {folder}".format(folder = folder),
|
|
]
|
|
}
|
|
}
|