2022-07-15 02:13:29 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: maven:3-jdk-11
|
|
|
|
commands:
|
|
|
|
- mvn -B -DskipTests clean package
|
|
|
|
- mvn test -B
|
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
|
|
|
|
2022-07-15 06:36:19 +03:00
|
|
|
- name: archive-artifact
|
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
2022-07-15 06:57:06 +03:00
|
|
|
- mkdir -p /builds/mplayer4anime
|
2022-07-15 07:18:26 +03:00
|
|
|
- cp target/mplayer4anime-*jar /builds/mplayer4anime/
|
2022-07-15 06:36:19 +03:00
|
|
|
volumes:
|
2022-07-15 06:57:06 +03:00
|
|
|
- name: builds
|
|
|
|
path: /builds
|
2022-07-15 06:36:19 +03:00
|
|
|
|
2022-07-15 02:13:29 +03:00
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
host:
|
2022-07-15 08:23:24 +03:00
|
|
|
path: /home/docker/drone/files/m2
|
2022-07-15 06:57:06 +03:00
|
|
|
- name: builds
|
2022-07-15 06:36:19 +03:00
|
|
|
host:
|
2022-07-15 08:23:24 +03:00
|
|
|
path: /home/www/builds
|