Update .woodpecker.yml
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
7fb3c87fc0
commit
46a4045add
1 changed files with 13 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue