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

develop
a411763600 2 weeks ago
parent 625da7d211
commit 3568cafa5f

@ -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

Loading…
Cancel
Save