Browse Source

update pipeline for master branch

master
parent
commit
6bf1a788e0
1 changed files with 15 additions and 13 deletions
  1. +15
    -13
      .drone.yml

+ 15
- 13
.drone.yml View File

@@ -1,41 +1,43 @@
kind: pipeline
type: docker
name: 1
name: masterpipe
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


Loading…
Cancel
Save