From 84d914fd2947b0ccde35f9509e559616e38e3ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E7=BA=A7=E4=BA=91=E8=84=91=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=B8=88?= <153692773@qq.com> Date: Thu, 23 Feb 2023 00:00:08 +0800 Subject: [PATCH] update pipeline for master branch --- .drone.yml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index 382e2a0..2d324f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,27 +2,32 @@ kind: pipeline type: docker name: 1 platform: - os: linuxs - arch: amd64 + os: linux + arch: arm64 steps: - name: maven image: maven:3-jdk-10 - volumes: - - name: cache - path: /root/.m2 commands: - - mvn install -DskipTests=true -- name: run - image: maven:3-jdk-8 - volumes: - - name: cache - path: /root/.m2 + - mvn compile + +- name: maven + image: maven:3-jdk-10 commands: - - nohup mvn tomcat7:run & -volumes: -- name: cache - host: - path: /var/lib/cache + - mvn test + +- 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