Compare commits

...

3 Commits

1 changed files with 15 additions and 26 deletions
Unified View
  1. +15
    -26
      .drone.yml

+ 15
- 26
.drone.yml View File

@@ -1,15 +1,17 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: masterpipe
name: dockerpipe
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64

volumes:
- name: cache
host:
path: /var/lib/cache
steps: steps:
- name: detection
image: python:3
failure: ignore
commands:
- echo **detection test**
- curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei","repoOwner":"wangwei","repository":"jwebssh","branchName":"docker"}'

- name: maven - name: maven
image: maven:3-jdk-10 image: maven:3-jdk-10
volumes: volumes:
@@ -17,30 +19,17 @@ 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: 远程主机部署
image: appleboy/drone-ssh
- name: docker
image: plugins/docker
settings: settings:
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
username: 153692771@qq.com
password: Docker199637
repo: foo/bar
tags: latest
trigger: trigger:
branch: branch:
- master
- docker
event: event:
- push - push
- pull_request - pull_request

Loading…
Cancel
Save