diff --git a/.devops/自动上传镜像.yml b/.devops/自动上传镜像.yml index 9c621d3..263b820 100644 --- a/.devops/自动上传镜像.yml +++ b/.devops/自动上传镜像.yml @@ -36,6 +36,20 @@ workflow: - ref: end name: 结束 task: end + needs: + - ssh_cmd_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_ip: '"121.43.168.217"' + ssh_port: '"3000"' + ssh_user: '"root"' + ssh_cmd: >- + "docker pull + registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest" + + "docker run -p 3000:3000 registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest" needs: - docker_image_build_0