2022-07-26 18:25:26 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2022-12-23 07:47:10 +03:00
|
|
|
image: maven:3-openjdk-17
|
2022-07-26 18:25:26 +03:00
|
|
|
commands:
|
2022-07-26 20:16:01 +03:00
|
|
|
- mvn -B -DskipTests clean package
|
|
|
|
- mvn test -B
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 20:16:01 +03:00
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
2022-07-26 18:25:26 +03:00
|
|
|
|
|
|
|
- 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/
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 20:16:01 +03:00
|
|
|
- name: builds
|
|
|
|
path: /builds
|
2022-07-26 18:25:26 +03:00
|
|
|
|
2023-02-08 01:15:30 +03:00
|
|
|
- name: make-win-installer
|
|
|
|
image: wheatstalk/makensis:3
|
|
|
|
commands:
|
|
|
|
- cp target/NS-USBloader.exe misc/windows/NSIS/
|
|
|
|
- misc/windows/update_version.sh
|
2023-02-08 01:50:27 +03:00
|
|
|
- cd misc/windows/NSIS
|
|
|
|
- makensis -V4 ./installer.nsi
|
2023-02-08 01:15:30 +03:00
|
|
|
- cp Installer-*.exe /builds/ns-usbloader/
|
2023-02-08 01:50:27 +03:00
|
|
|
- rm ./NS-USBloader.exe
|
|
|
|
- cd ../../../
|
2023-02-08 01:15:30 +03:00
|
|
|
volumes:
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
|
|
|
- name: jdk
|
2023-02-08 01:58:27 +03:00
|
|
|
path: /drone/src/misc/windows/NSIS/jdk
|
2023-02-08 01:15:30 +03:00
|
|
|
|
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
|
2022-07-26 18:25:26 +03:00
|
|
|
commands:
|
2022-07-26 20:16:01 +03:00
|
|
|
- . ./.make_legacy
|
|
|
|
- mvn -B -DskipTests clean package
|
|
|
|
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 20:16:01 +03:00
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
2022-07-26 18:25:26 +03:00
|
|
|
|
2023-02-08 01:15:30 +03:00
|
|
|
- name: make-legacy-win-installer
|
|
|
|
image: wheatstalk/makensis:3
|
|
|
|
commands:
|
|
|
|
- cp target/NS-USBloader.exe misc/windows/NSIS/
|
|
|
|
- misc/windows/update_version.sh legacy
|
2023-02-08 01:50:27 +03:00
|
|
|
- cd misc/windows/NSIS
|
|
|
|
- makensis -V4 ./installer.nsi
|
2023-02-08 01:15:30 +03:00
|
|
|
- cp Installer-*.exe /builds/ns-usbloader/
|
|
|
|
volumes:
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
|
|
|
- name: jdk
|
2023-02-08 01:58:27 +03:00
|
|
|
path: /drone/src/misc/windows/NSIS/jdk
|
2023-02-08 01:15:30 +03:00
|
|
|
|
2022-07-26 18:25:26 +03:00
|
|
|
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
|
2023-02-08 01:15:30 +03:00
|
|
|
- name: jdk
|
|
|
|
host:
|
|
|
|
path: /home/docker/drone/files/assembly/openjdk-19.0.2
|