From 46a4045add258b34ff3c71f20a5ca9e1570de5e2 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 8 Jun 2025 10:13:43 +0100 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0ca66f5..b2a7a00 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,7 +6,9 @@ steps: GITHUB_USERNAME: from_secret:GITHUB_USERNAME commands: - echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin - + when: + event: [push, pull_request] + restore-cache: image: plugins/cache settings: @@ -15,7 +17,9 @@ steps: - /root/.m2 - frontend/node_modules path: /tmp/woodpecker-cache - + when: + event: [push, pull_request] + backend-build: image: maven:3.9-eclipse-temurin-17 volumes: @@ -25,6 +29,7 @@ steps: - mvn clean install -Pprod -DskipTests - cp target/resilient*.jar /output/ when: + event: [push, pull_request] branch: include: - main @@ -39,14 +44,18 @@ steps: - /root/.m2 - frontend/node_modules path: /tmp/woodpecker-cache - + when: + event: [push, pull_request] + save-artifacts: image: ghcr.io/woodpecker-ci/plugin-artifacts settings: files: - /output/resilient*.jar destination: build - + when: + event: [push, pull_request] + volumes: build: host: