From da5baf1cabaa0ba304e98357918a839aa2db8a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E7=BA=A7=E4=BA=91=E8=84=91=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=B8=88?= <153692773@qq.com> Date: Thu, 8 Jun 2023 12:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d1755c4 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file