ns-usbloader/.drone.yml

45 lines
962 B
YAML
Raw Normal View History

kind: pipeline
type: docker
name: default
steps:
- name: test
2022-12-23 07:47:10 +03:00
image: maven:3-openjdk-17
commands:
2022-07-26 20:16:01 +03:00
- mvn -B -DskipTests clean package
- mvn test -B
volumes:
2022-07-26 20:16:01 +03:00
- name: m2
path: /root/.m2
- name: archive-standard-artifact
image: alpine:latest
commands:
2022-07-26 20:16:01 +03:00
- mkdir -p /builds/ns-usbloader
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
- cp target/NS-USBloader-*exe /builds/ns-usbloader/
volumes:
2022-07-26 20:16:01 +03:00
- name: builds
path: /builds
2022-07-26 20:16:01 +03:00
- name: emerge-legacy-artifact
2022-12-23 07:47:10 +03:00
image: maven:3-openjdk-17
commands:
2022-07-26 20:16:01 +03:00
- . ./.make_legacy
- mvn -B -DskipTests clean package
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
- cp target/NS-USBloader-*exe /builds/ns-usbloader/
volumes:
2022-07-26 20:16:01 +03:00
- name: m2
path: /root/.m2
- name: builds
path: /builds
volumes:
- name: m2
host:
path: /home/docker/drone/files/m2
- name: builds
host:
2022-07-26 20:16:01 +03:00
path: /home/www/builds