2022-09-17 23:02:17 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-12-25 07:03:37 +03:00
|
|
|
- name: build
|
|
|
|
image: maven:3-openjdk-17
|
2022-09-17 23:02:17 +03:00
|
|
|
commands:
|
|
|
|
- mvn -B -DskipTests clean install
|
|
|
|
- mvn test -B
|
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
|
|
|
|
2023-03-21 13:41:13 +03:00
|
|
|
- name: archive-artifacts
|
2022-09-17 23:02:17 +03:00
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
|
|
|
- mkdir -p /builds/Tihwin
|
|
|
|
- cp target/Tihwin-*[0-9].jar /builds/Tihwin/
|
2022-12-25 07:03:37 +03:00
|
|
|
- cp target/Tihwin-*[0-9].exe /builds/Tihwin/
|
2022-09-17 23:02:17 +03:00
|
|
|
volumes:
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
|
|
|
|
2023-03-21 13:41:13 +03:00
|
|
|
- name: make-win-installer
|
|
|
|
image: wheatstalk/makensis:3
|
|
|
|
commands:
|
|
|
|
- cp target/Tihwin-*.exe NSIS/Tihwin.exe
|
|
|
|
- NSIS/update_version.sh
|
|
|
|
- cd NSIS
|
|
|
|
- makensis -V4 ./installer.nsi
|
|
|
|
- cp Installer-*.exe /builds/Tihwin/
|
|
|
|
volumes:
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
|
|
|
- name: jdk
|
2023-03-21 13:49:36 +03:00
|
|
|
path: /drone/src/NSIS/jdk
|
2023-03-21 13:41:13 +03:00
|
|
|
|
2022-09-17 23:02:17 +03:00
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
host:
|
|
|
|
path: /home/docker/drone/files/m2
|
|
|
|
- name: builds
|
|
|
|
host:
|
2023-03-21 14:06:10 +03:00
|
|
|
path: /home/www/builds
|
|
|
|
- name: jdk
|
|
|
|
host:
|
|
|
|
path: /home/docker/drone/files/assembly/openjdk-19.0.2
|