Add .woodpecker.yml

This commit is contained in:
root 2025-06-04 21:58:44 +01:00
parent af63377a1e
commit a12e2d62c2

38
.woodpecker.yml Normal file
View file

@ -0,0 +1,38 @@
pipeline:
backend-build:
image: maven:3.9-eclipse-temurin-17
commands:
- echo "Building backend + frontend"
- mvn clean install -Pprod -DskipTests
when:
branch:
include:
- main
- master
- develop
test:
image: maven:3.9-eclipse-temurin-17
commands:
- echo "Running tests"
- mvn test
publish-artifact:
image: alpine
commands:
- echo "Staging JAR to /build"
- mkdir -p /build
- cp target/*.jar /build/
when:
branch:
include:
- main
- master
volumes:
- name: build
path: /build
volumes:
- name: build
host:
path: /tmp/woodpecker-artifacts