From d6f4a893b5e5ee940be6c50db75c8487e0fa4c4e Mon Sep 17 00:00:00 2001 From: wangwei <153692773@qq.com> Date: Thu, 23 Feb 2023 01:03:46 +0800 Subject: [PATCH] update cron config in .drone.yml --- .drone.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index 96ccc68..8d1b000 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,40 +4,38 @@ name: 1 platform: os: linux arch: arm64 - volumes: - - name: cache - host: - path: /var/lib/cache +- name: cache + host: + path: /var/lib/cache steps: - name: maven image: maven:3-jdk-10 volumes: - - name: cache - path: /root/.m2 + - name: cache + path: /root/.m2 commands: - mvn compile - name: test image: maven:3-jdk-10 volumes: - - name: cache - path: /root/.m2 + - name: cache + path: /root/.m2 commands: - mvn test - - name: 远程主机部署 image: appleboy/drone-ssh:linux-arm64 settings: - host: + host: from_secret: ip - username: + username: from_secret: name - password: + password: from_secret: pwd port: 22 script: - - chmod +x /home/deploy.sh - - nohup bash /home/deploy.sh & + - chmod +x /home/deploy.sh + - nohup bash /home/deploy.sh & trigger: branch: - master