From 1baed470d9568d657d7b26cdb70c35de86bbb0b8 Mon Sep 17 00:00:00 2001 From: m53297601 <2053003901@qq.com> Date: Thu, 1 Apr 2021 17:25:32 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index cad4abe..4c247b0 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -10,6 +10,22 @@ steps: image: maven:3-jdk-10 commands: - mvn install -DskipTests=true +# 本模板示例为上传软件包和部署脚本到home目录 +# host、username、password可在参数管理中配置 +- name: 上传文件 + image: appleboy/drone-scp + settings: + host: + from_secret: deploy_ip + username: + from_secret: deploy_name + password: + from_secret: deploy_pwd + port: 22 + target: /opt/demo + source: + - target/*.war + - Dockerfile # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # host、username、password可在参数管理中配置 - name: 远程主机部署