12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- kind: pipeline
- type: docker
- name: test-pipeline
- clone:
- disable: true
- steps:
-
-
- - name: clone
- image: drone/git:1.2.1
-
- - name: test-build
- image: maven:3.8.4
- volumes:
-
- - name: mvn-cache
- path: /root/.m2
-
- commands:
- - mvn clean install
-
- - name: test-deploy
- image: appleboy/drone-ssh:1.6.4
- settings:
-
- host: 192.168.108.200
-
- username:
- from_secret: ssh_user
-
- password:
- from_secret: ssh_pwd
-
- port: 22
-
- command_timeout: 10m
-
- script:
-
- - cd /home/app
-
-
-
- - cp /home/mvn/.m2/repository/com/example/test/0.0.1-SNAPSHOT/test-0.0.1-SNAPSHOT.jar .
-
-
- volumes:
- - name: mvn-cache
- host:
- path: /home/mvn/.m2
- trigger:
- branch:
- - master
|