diff --git a/.devops/SSH命令调试.yml b/.devops/SSH命令调试.yml index 4d9390e..863a85f 100644 --- a/.devops/SSH命令调试.yml +++ b/.devops/SSH命令调试.yml @@ -20,14 +20,10 @@ workflow: 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_grou\ - peazzy:latest && docker images | grep - registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_grou\ - peazzy | awk '{if ($2 != \"latest\") print$3}' | xargs docker rmi && - docker run -d -p 3000:3000 --name groupeazzy - registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_grou\ - peazzy:latest\"" + 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 diff --git a/.devops/自动上传镜像.yml b/.devops/自动上传镜像.yml index a342a5d..8a0105c 100644 --- a/.devops/自动上传镜像.yml +++ b/.devops/自动上传镜像.yml @@ -53,17 +53,12 @@ workflow: input: ssh_pass: ((ssh.key)) ssh_ip: '"121.43.168.217"' - ssh_port: '"3000"' + ssh_port: '"22"' ssh_user: '"root"' - ssh_cmd: >- - "docker stop $(docker ps -a -q --filter - ancestor=registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest)" - - "docker rm $(docker ps -a -q --filter ancestor=registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_groupeazzy:latest)" - - "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" + 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: - docker_image_build_0