From 7abde394c5dc4da55324c72690e47202e2b2e555 Mon Sep 17 00:00:00 2001 From: pyc6trq79 <434658198@qq.com> Date: Thu, 7 Apr 2022 11:44:37 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index d47abe3..b325561 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1 +1,32 @@ -#pipeline + +kind: pipeline +type: docker +name: test +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: + - custom