resilient/.woodpecker.yml
2025-06-09 08:29:18 +01:00

47 lines
No EOL
1 KiB
YAML

steps:
restore-cache:
image: plugins/cache
settings:
restore: true
mount:
- /root/.m2
- frontend/node_modules
path: /tmp/woodpecker-cache
when:
event: [push, pull_request, manual]
backend-build:
image: maven:3.9-eclipse-temurin-17
volumes:
- build:/output
commands:
- echo "Building backend + frontend"
- mvn clean install -Pprod -DskipTests
- cp target/resilient*.jar /output/
when:
event: [push, pull_request, manual]
branch:
include:
- main
- master
- develop
save-cache:
image: plugins/cache
settings:
rebuild: true
mount:
- /root/.m2
- frontend/node_modules
path: /tmp/woodpecker-cache
when:
event: [push, pull_request, manual]
save-artifacts:
image: ghcr.io/woodpecker-ci/plugin-artifacts
settings:
files:
- /output/resilient*.jar
destination: build
when:
event: [push, pull_request, manual]