From 3568cafa5fcaa7aadc732c64f99582dc19ff77cf Mon Sep 17 00:00:00 2001 From: a411763600 <411763600@qq.com> Date: Wed, 2 Apr 2025 15:16:09 +0800 Subject: [PATCH] Update .trustie-pipeline.yml --- .trustie-pipeline.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 6115057..beccc3f 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -25,12 +25,10 @@ steps: password: from_secret: deploy_pwd port: 22 - script: - - echo ====暂停容器开始11======= - - docker rm -f unity3d-test - - docker rmi unity3d-test:1.0 - - cd /opt/unity3d - - echo ====开始部署======= - - docker build -t unity3d-test:1.0 . - - docker run -d -p 8081:8081 --name unity3d-test unity3d-test:1.0 - - echo ====部署成功====== +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