Update .woodpecker.yml
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
root 2025-06-08 10:13:43 +01:00
parent 7fb3c87fc0
commit 46a4045add

View file

@ -6,7 +6,9 @@ steps:
GITHUB_USERNAME: from_secret:GITHUB_USERNAME GITHUB_USERNAME: from_secret:GITHUB_USERNAME
commands: commands:
- echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin - echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
when:
event: [push, pull_request]
restore-cache: restore-cache:
image: plugins/cache image: plugins/cache
settings: settings:
@ -15,7 +17,9 @@ steps:
- /root/.m2 - /root/.m2
- frontend/node_modules - frontend/node_modules
path: /tmp/woodpecker-cache path: /tmp/woodpecker-cache
when:
event: [push, pull_request]
backend-build: backend-build:
image: maven:3.9-eclipse-temurin-17 image: maven:3.9-eclipse-temurin-17
volumes: volumes:
@ -25,6 +29,7 @@ steps:
- mvn clean install -Pprod -DskipTests - mvn clean install -Pprod -DskipTests
- cp target/resilient*.jar /output/ - cp target/resilient*.jar /output/
when: when:
event: [push, pull_request]
branch: branch:
include: include:
- main - main
@ -39,14 +44,18 @@ steps:
- /root/.m2 - /root/.m2
- frontend/node_modules - frontend/node_modules
path: /tmp/woodpecker-cache path: /tmp/woodpecker-cache
when:
event: [push, pull_request]
save-artifacts: save-artifacts:
image: ghcr.io/woodpecker-ci/plugin-artifacts image: ghcr.io/woodpecker-ci/plugin-artifacts
settings: settings:
files: files:
- /output/resilient*.jar - /output/resilient*.jar
destination: build destination: build
when:
event: [push, pull_request]
volumes: volumes:
build: build:
host: host: