From 50fae55327ad78fbed4c750b26c630e54d4a0e35 Mon Sep 17 00:00:00 2001 From: jasder <2053003901@qq.com> Date: Wed, 2 Apr 2025 14:48:04 +0800 Subject: [PATCH] Update .trustie-pipeline.yml --- .trustie-pipeline.yml | 55 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index e5cada1..a59d754 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1,32 +1,31 @@ - -kind: pipeline -type: docker -name: deploy -platform: - os: linux +kind: pipeline +type: docker +name: deploy +platform: + os: linux arch: amd64 steps: -- name: maven - image: maven:3-jdk-10 - commands: +- 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 +# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) +# 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: - - main - event: - - push +trigger: + branch: + - main + event: + - push