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