Browse Source

update pipeline for docker branch

docker
wangwei10061 3 months ago
parent
commit
f0f74d68d2
1 changed files with 12 additions and 15 deletions
  1. +12
    -15
      .drone.yml

+ 12
- 15
.drone.yml View File

@@ -1,17 +1,10 @@
kind: pipeline
type: docker
name: dockerpipe
name: 1
platform:
os: linux
arch: arm64
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
image: maven:3-jdk-10
volumes:
@@ -19,14 +12,18 @@ steps:
path: /root/.m2
commands:
- mvn compile

- name: docker
image: plugins/docker
- name: 远程主机部署
image: appleboy/drone-ssh:linux-arm64
settings:
username: 153692771@qq.com
password: Docker199637
repo: foo/bar
tags: latest
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
script:
- echo hello
trigger:
branch:
- docker


Loading…
Cancel
Save