1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- kind: pipeline
- type: docker
- name: student
- steps:
- - name: package
- image: maven:3-jdk-8
- volumes:
- - name: maven-cache
- path: /root/.m2/
- - name: maven-build
- path: /app/build
- commands:
-
- - chmod +x drone.sh
- - ./drone.sh
- - name: build-start
- image: appleboy/drone-ssh
- settings:
- host: 172.16.90.64
- username: root
- password:
- from_secret: 64_ssh_pw
- port: 22
- command_timeout: 5m
- script:
-
- - cd /mydata/maven/build/student/
-
- - chmod +x drone_run.sh
-
- - ./drone_run.sh
- volumes:
- - name: maven-build
- host:
-
- path: /mydata/maven/build
- - name: maven-cache
- host:
-
- path: /mydata/maven/cache
|