Update .woodpecker.yml
This commit is contained in:
parent
2235e4449d
commit
75540c689d
1 changed files with 20 additions and 20 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue