Update .trustie-pipeline.yml
continuous-integration/drone/push Build is passing Details

develop
jasder 3 weeks ago
parent 3b7c4cce58
commit e4eafcd74d

@ -12,6 +12,7 @@ steps:
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
pull: if-not-exists # 添加此行,只在本地没有镜像时才拉取
settings:
host:
from_secret: deploy_ip
@ -27,5 +28,6 @@ steps:
- chmod 777 /opt/test
- docker rm -f nginx
- echo ====开始部署=======
- docker run -d -p 58080:80 -v /opt/test:/usr/share/nginx/html:ro --name nginx nginx
- docker run -d -p 58080:80 -v /opt/test:/usr/share/nginx/html:ro --name nginx nginx:1.24.0
- echo ====部署成功======
Loading…
Cancel
Save