Browse Source

update cron config in .drone.yml

parallel
parent
commit
6c46b1d1f1
1 changed files with 14 additions and 16 deletions
  1. +14
    -16
      .drone.yml

+ 14
- 16
.drone.yml View File

@@ -5,31 +5,29 @@ platform:
os: linux
arch: arm64
volumes:
- name: cache
host:
path: /var/lib/cache
- name: cache
host:
path: /var/lib/cache
steps:
- name: maventask1
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
- name: cache
path: /root/.m2
commands:
- echo "clean target"

- name: maventask2
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
- name: cache
path: /root/.m2
commands:
- echo "install dependency"

- name: maven
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
- name: cache
path: /root/.m2
commands:
- mvn compile
depends_on:
@@ -38,16 +36,16 @@ steps:
- 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:
- parallel


Loading…
Cancel
Save