Update .woodpecker.yml

This commit is contained in:
root 2025-06-08 08:35:31 +01:00
parent 2235e4449d
commit 75540c689d

View file

@ -1,47 +1,47 @@
pipeline: pipeline:
docker-login: docker-login:
image: docker image: docker
environment: environment: >
- GITHUB_PAT GITHUB_PAT
- GITHUB_USERNAME 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
restore-cache: restore-cache:
image: plugins/cache image: plugins/cache
settings: settings:
restore: true restore: true
mount: mount: >
- /root/.m2 /root/.m2
- frontend/node_modules frontend/node_modules
path: /tmp/woodpecker-cache path: /tmp/woodpecker-cache
backend-build: backend-build:
image: maven:3.9-eclipse-temurin-17 image: maven:3.9-eclipse-temurin-17
commands: commands: >
- echo "Building backend + frontend" echo "Building backend + frontend"
- mvn clean install -Pprod -DskipTests mvn clean install -Pprod -DskipTests
when: when:
branch: branch:
include: include: >
- main main
- master master
- develop develop
save-cache: save-cache:
image: plugins/cache image: plugins/cache
settings: settings:
rebuild: true rebuild: true
mount: mount: >
- /root/.m2 /root/.m2
- frontend/node_modules frontend/node_modules
path: /tmp/woodpecker-cache path: /tmp/woodpecker-cache
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
volumes: volumes: