Update .trustie-pipeline.yml
continuous-integration/drone/push Build encountered an error Details

develop
a411763600 3 weeks ago
parent 625da7d211
commit 3568cafa5f

@ -25,12 +25,10 @@ steps:
password: password:
from_secret: deploy_pwd from_secret: deploy_pwd
port: 22 port: 22
script: steps:
- echo ====暂停容器开始11======= - name: cicd
- docker rm -f unity3d-test commands:
- docker rmi unity3d-test:1.0 - echo =======
- cd /opt/unity3d - nerdctl rm -f testnginx
- echo ====开始部署======= - nerdctl run --name testnginx -d -p 58080:80 nginx
- docker build -t unity3d-test:1.0 . - echo nginx 访问地址 http://39.98.49.211:58080
- docker run -d -p 8081:8081 --name unity3d-test unity3d-test:1.0
- echo ====部署成功======

Loading…
Cancel
Save