Update '.trustie-pipeline.yml'

master
p2oql4fvh 4 years ago
parent 8dc47eedf2
commit 243de72531

@ -1,2 +1,32 @@
#pipeline
dfsfv
kind: pipeline
type: docker
name: s
platform:
os: linux
arch: amd64
steps:
- name: 编译构建
image: python
commands:
- pip install -r requirements.txt
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
trigger:
branch:
- master
event:
- push

Loading…
Cancel
Save