Browse Source

update pipeline for docker branch

docker
parent
commit
e8c34c3493
1 changed files with 9 additions and 17 deletions
  1. +9
    -17
      .drone.yml

+ 9
- 17
.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,16 +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
image: appleboy/drone-ssh:linux-arm64
settings:
host:
from_secret: ip
@@ -37,10 +24,15 @@ steps:
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- bash /home/deploy.sh
volumes:
- name: cache
host:
path: /var/lib/cache
trigger:
branch:
- master
- docker
event:
- push
- pull_request

Loading…
Cancel
Save