gitlink_help_center/.devops/SSH命令调试.yml

30 lines
761 B
YAML

version: 2
name: SSH命令调试
description: 用以调试ssh命令
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_pass: ((ssh.key))
ssh_ip: '"121.43.168.217"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '"docker stop groupeazzy && docker rm groupeazzy && docker pull
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest
&& docker run -d -p 3000:3000 --name groupeazzy
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest"'
needs:
- start