Browse Source

update cron config in .drone.yml

ansible
parent
commit
6e4de69fb4
1 changed files with 12 additions and 14 deletions
  1. +12
    -14
      .drone.yml

+ 12
- 14
.drone.yml View File

@@ -4,40 +4,38 @@ name: masterpipe
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64

volumes: volumes:
- name: cache
host:
path: /var/lib/cache
- name: cache
host:
path: /var/lib/cache
steps: steps:
- name: maven - name: maven
image: maven:3-jdk-10 image: maven:3-jdk-10
volumes: volumes:
- name: cache
path: /root/.m2
- name: cache
path: /root/.m2
commands: commands:
- mvn compile - mvn compile
- name: test - name: test
image: maven:3-jdk-10 image: maven:3-jdk-10
volumes: volumes:
- name: cache
path: /root/.m2
- name: cache
path: /root/.m2
commands: commands:
- mvn test - mvn test

- name: 远程主机部署 - name: 远程主机部署
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host:
host:
from_secret: ip from_secret: ip
username:
username:
from_secret: name from_secret: name
password:
password:
from_secret: pwd from_secret: pwd
port: 22 port: 22
script: script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- chmod +x /home/deploy.sh
- ./home/deploy.sh
trigger: trigger:
branch: branch:
- master - master


Loading…
Cancel
Save