Compare commits

...

1 Commits

Author SHA1 Message Date
jasder e4eafcd74d Update .trustie-pipeline.yml
continuous-integration/drone/push Build is passing Details
3 weeks ago

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