From 9d1b3b4d144a34ae9cb9a7b75db5a64d79cef363 Mon Sep 17 00:00:00 2001 From: raodi Date: Sun, 5 Dec 2021 13:54:34 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index d47abe3..ebf0fdc 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1 +1,36 @@ -#pipeline + +kind: pipeline +type: docker +name: ci1 +platform: + os: linux + arch: amd64 +steps: +- name: 编译构建 + image: python + commands: + - pip install -r requirements.txt +- name: maven + image: maven:3-jdk-10 + commands: + - mvn install -DskipTests=true +# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) +# 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