git - drone - ghost - guacamole - rocket chat https://sigyl.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

17 lines
408 B

  1. load("@this//:from-secret.star", "fromSecret")
  2. def clear(folder):
  3. return {
  4. "name": "clear",
  5. "image": "appleboy/drone-ssh",
  6. "settings": {
  7. "host": fromSecret("ssh-host"),
  8. "port": fromSecret("ssh-port"),
  9. "username": fromSecret("ssh-user"),
  10. "password": fromSecret("ssh-password"),
  11. "script": [
  12. "rm -r -f {folder}".format(folder = folder),
  13. ]
  14. }
  15. }