Compare commits

...

12 Commits

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

+ 9
- 16
.drone.yml View File

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

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

arch: amd64
volumes: volumes:
- name: cache - name: cache
host: host:
@@ -17,30 +17,23 @@ steps:
path: /root/.m2 path: /root/.m2
commands: commands:
- mvn compile - mvn compile
- name: test
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
commands:
- mvn test

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

Loading…
Cancel
Save