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