Compare commits

...

12 Commits

1 changed files with 9 additions and 16 deletions
Split View
  1. +9
    -16
      .drone.yml

+ 9
- 16
.drone.yml View File

@@ -1,10 +1,10 @@

kind: pipeline
type: docker
name: masterpipe
name: ansible
platform:
os: linux
arch: arm64

arch: amd64
volumes:
- name: cache
host:
@@ -17,30 +17,23 @@ 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
- 106.75.223.53
- 113.31.116.20
username:
from_secret: name
password:
from_secret: pwd
from_secret: passwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- bash /home/deploy.sh
trigger:
branch:
- master
- ansible
event:
- push
- pull_request

Loading…
Cancel
Save