Browse Source

添加 '.drone.yml'

master
parent
commit
da5baf1cab
1 changed files with 45 additions and 0 deletions
  1. +45
    -0
      .drone.yml

+ 45
- 0
.drone.yml View File

@@ -0,0 +1,45 @@
kind: pipeline
type: docker
name: masterpipe
platform:
os: linux
arch: arm64

clone:
disable: true

steps:
- name: maven
image: maven:3-jdk-8
volumes:
- name: maven-build
path: /tmp/testDrone
commands:
- ls
- cp README.md /tmp/testDrone/sbdEADME.md
- cd /tmp/testDrone
- ls

- name: 远程主机部署
image: appleboy/drone-ssh:linux-arm64
settings:
host: 10.16.22.30
username: root
password:
from_secret: SECRET_PWD
port: 22
script:
- ls
- cat /tmp/testDrone/sbdREADME.md

volumes:
- name: maven-build
host:
path: /tmp/testDrone

trigger:
branch:
- master
event:
- push
- pull_request

Loading…
Cancel
Save