This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
stack/drone-starlark/repos/clear.star

17 lines
408 B
Plaintext
Raw Permalink Normal View History

2020-04-27 20:04:00 +00:00
load("@this//:from-secret.star", "fromSecret")
2020-04-27 19:26:12 +00:00
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),
]
}
}