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,6 +6,8 @@ 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
|
||||||
|
@ -15,6 +17,8 @@ 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
|
||||||
|
@ -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,6 +44,8 @@ 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
|
||||||
|
@ -46,6 +53,8 @@ steps:
|
||||||
files:
|
files:
|
||||||
- /output/resilient*.jar
|
- /output/resilient*.jar
|
||||||
destination: build
|
destination: build
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue