From d4dd42b6bdc4d8becd57c1262913b61cbedfa029 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Thu, 21 Nov 2024 01:28:59 +0300 Subject: [PATCH] Move to Woodpecker CI --- .woodpecker/woodpecker.yml | 28 ++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/woodpecker.yml diff --git a/.woodpecker/woodpecker.yml b/.woodpecker/woodpecker.yml new file mode 100644 index 0000000..13c3f5a --- /dev/null +++ b/.woodpecker/woodpecker.yml @@ -0,0 +1,28 @@ +steps: + - name: build-install-locally + when: + event: [tag, push] + image: maven:3-openjdk-17 + commands: + - mvn -B -DskipTests clean install + volumes: + - /home/docker/woodpecker/files/m2:/root/.m2 + + - name: test + when: + event: [tag] + image: maven:3-openjdk-17 + commands: + - mvn test -B + volumes: + - /home/docker/woodpecker/files/m2:/root/.m2 + + - name: archive-artifact + when: + event: [tag, push] + image: alpine:latest + commands: + - mkdir -p /builds/libKonogonka + - cp target/libKonogonka-*[0-9].jar /builds/libKonogonka/ + volumes: + - /home/www/builds:/builds \ No newline at end of file diff --git a/README.md b/README.md index 8626b35..aee9289 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ libKonogonka -![License](https://img.shields.io/badge/License-GPLv3-blue.svg) [![Build Status](https://ci.redrise.ru/api/badges/desu/libKonogonka/status.svg)](https://ci.redrise.ru/desu/libKonogonka) +![License](https://img.shields.io/badge/License-GPLv3-blue.svg) [![status-badge](https://ci.redrise.ru/api/badges/11/status.svg)](https://ci.redrise.ru/repos/11) Library made to work with NS-specific files / filesystem images. Separated backend of [konogonka](https://github.com/developersu/konogonka) ([independent source location](https://git.redrise.ru/desu/konogonka))