Compare commits

...

2 Commits

2 changed files with 4 additions and 29 deletions
Split View
  1. +2
    -29
      .drone.yml
  2. +2
    -0
      a.java

+ 2
- 29
.drone.yml View File

@@ -1,14 +1,9 @@
kind: pipeline
type: docker
name: masterpipe
name: 1
platform:
os: linux
arch: arm64

volumes:
- name: cache
host:
path: /var/lib/cache
steps:
- name: maven
image: maven:3-jdk-10
@@ -17,30 +12,8 @@ steps:
path: /root/.m2
commands:
- mvn compile
- name: test
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
commands:
- 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
- interface
event:
- push
- pull_request

+ 2
- 0
a.java View File

@@ -0,0 +1,2 @@
111
222

Loading…
Cancel
Save