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

develop
a411763600 2 weeks ago
parent 3568cafa5f
commit b80d078632

@ -1,34 +1,22 @@
kind: pipeline
type: docker
name: deploy
type: ssh
name: cicd
platform:
os: linux
arch: amd64
volumes:
- name: cache
host:
path: /var/lib/cache
steps:
- name: deploy-to-server
image: appleboy/drone-scp
commands:
- mvn install -DskipTests=true
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: deploy_ip
username:
from_secret: deploy_name
password:
from_secret: deploy_pwd
port: 22
server:
host: deploy_ip
user: deploy_name
password: deploy_pwd
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
- echo ==== nginx=======
- curl 127.0.0.1:58080
- echo ==========
- echo http://localhost:555

Loading…
Cancel
Save