|
|
|
@ -9,20 +9,7 @@ steps:
|
|
|
|
|
- name: 编译构建
|
|
|
|
|
image: python
|
|
|
|
|
commands:
|
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
|
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
|
|
|
|
# host、username、password可在参数管理中配置
|
|
|
|
|
- name: ssh commands
|
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
|
settings:
|
|
|
|
|
host: foo.com
|
|
|
|
|
username: root
|
|
|
|
|
password: 1234
|
|
|
|
|
port: 22
|
|
|
|
|
+ script_stop: true
|
|
|
|
|
script:
|
|
|
|
|
- mkdir abc/def/efg
|
|
|
|
|
- echo "you can't see the steps."
|
|
|
|
|
- pip install numpy
|
|
|
|
|
trigger:
|
|
|
|
|
branch:
|
|
|
|
|
- master
|
|
|
|
|