forked from p68pgqsh7/simulation_temp
Update .trustie-pipeline.yml
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/push Build is pending
Details
parent
3568cafa5f
commit
b80d078632
@ -1,34 +1,22 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: ssh
|
||||||
name: deploy
|
name: cicd
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
volumes:
|
|
||||||
- name: cache
|
server:
|
||||||
host:
|
host: deploy_ip
|
||||||
path: /var/lib/cache
|
user: deploy_name
|
||||||
steps:
|
password: deploy_pwd
|
||||||
- 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
|
|
||||||
steps:
|
steps:
|
||||||
- name: cicd
|
- name: cicd
|
||||||
commands:
|
commands:
|
||||||
- echo =======
|
- echo =======
|
||||||
- nerdctl rm -f testnginx
|
- nerdctl rm -f testnginx
|
||||||
- nerdctl run --name testnginx -d -p 58080:80 nginx
|
- 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…
Reference in new issue