From b80d078632095ef308801ba9ae19f6c8fc9c079b Mon Sep 17 00:00:00 2001 From: a411763600 <411763600@qq.com> Date: Wed, 2 Apr 2025 15:20:44 +0800 Subject: [PATCH] Update .trustie-pipeline.yml --- .trustie-pipeline.yml | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index beccc3f..da217a9 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1,34 +1,22 @@ kind: pipeline -type: docker -name: deploy +type: ssh +name: cicd platform: os: linux arch: amd64 -volumes: -- name: cache - host: - path: /var/lib/cache -steps: -- name: deploy-to-server - image: appleboy/drone-scp - commands: - - mvn install -DskipTests=true -# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) -# host、username、password可在参数管理中配置 -- name: 远程主机部署 - image: appleboy/drone-ssh - settings: - host: - from_secret: deploy_ip - username: - from_secret: deploy_name - password: - from_secret: deploy_pwd - port: 22 + +server: + host: deploy_ip + user: deploy_name + password: deploy_pwd + steps: - name: cicd commands: - echo ======= - nerdctl rm -f testnginx - nerdctl run --name testnginx -d -p 58080:80 nginx - - echo nginx 访问地址 http://39.98.49.211:58080 + - echo ==== nginx======= + - curl 127.0.0.1:58080 + - echo ========== + - echo http://localhost:555