Update .woodpecker.yml

This commit is contained in:
root 2025-06-08 08:40:00 +01:00
parent 976b821e01
commit c09a458296

View file

@ -2,11 +2,11 @@ pipeline:
docker-login: docker-login:
image: docker image: docker
environment: environment:
- GITHUB_PAT GITHUB_PAT: from_secret:GITHUB_PAT
- 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
restore-cache: restore-cache:
image: plugins/cache image: plugins/cache
settings: settings:
@ -15,19 +15,22 @@ pipeline:
- /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
volumes:
- build:/output
commands: commands:
- echo "Building backend + frontend" - echo "Building backend + frontend"
- mvn clean install -Pprod -DskipTests - mvn clean install -Pprod -DskipTests
- cp target/resilient*.jar /output/
when: when:
branch: branch:
include: include:
- main - main
- master - master
- develop - develop
save-cache: save-cache:
image: plugins/cache image: plugins/cache
settings: settings:
@ -36,14 +39,14 @@ pipeline:
- /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:
build: build:
host: host: