git - drone - ghost - guacamole - rocket chat https://sigyl.com/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 
 

22 行
595 B

  1. load("@this//:from-secret.star", "fromSecret")
  2. def rescale(
  3. service,
  4. scaleTo
  5. ):
  6. return {
  7. "name": "rescale {service}".format(service=service),
  8. "image": "appleboy/drone-ssh",
  9. "settings": {
  10. "host": fromSecret("ssh-host"),
  11. "port": fromSecret("ssh-port"),
  12. "username": fromSecret("ssh-root-user"),
  13. "password": fromSecret("ssh-root-password"),
  14. "script": [
  15. "set -e",
  16. "docker service scale {service}=0".format(service=service),
  17. "docker service scale {service}={scaleTo}".format(service=service, scaleTo=scaleTo),
  18. ]
  19. }
  20. }