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:
|
||||
docker-login:
|
||||
image: docker
|
||||
environment:
|
||||
- GITHUB_PAT
|
||||
- GITHUB_USERNAME
|
||||
commands:
|
||||
- echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
|
||||
environment: >
|
||||
GITHUB_PAT
|
||||
GITHUB_USERNAME
|
||||
commands: >
|
||||
echo $GITHUB_PAT | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
|
||||
|
||||
restore-cache:
|
||||
image: plugins/cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- /root/.m2
|
||||
- frontend/node_modules
|
||||
mount: >
|
||||
/root/.m2
|
||||
frontend/node_modules
|
||||
path: /tmp/woodpecker-cache
|
||||
|
||||
backend-build:
|
||||
image: maven:3.9-eclipse-temurin-17
|
||||
commands:
|
||||
- echo "Building backend + frontend"
|
||||
- mvn clean install -Pprod -DskipTests
|
||||
commands: >
|
||||
echo "Building backend + frontend"
|
||||
mvn clean install -Pprod -DskipTests
|
||||
when:
|
||||
branch:
|
||||
include:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
include: >
|
||||
main
|
||||
master
|
||||
develop
|
||||
|
||||
save-cache:
|
||||
image: plugins/cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- /root/.m2
|
||||
- frontend/node_modules
|
||||
mount: >
|
||||
/root/.m2
|
||||
frontend/node_modules
|
||||
path: /tmp/woodpecker-cache
|
||||
|
||||
save-artifacts:
|
||||
image: ghcr.io/woodpecker-ci/plugin-artifacts
|
||||
settings:
|
||||
files:
|
||||
- /output/resilient*.jar
|
||||
files: >
|
||||
/output/resilient*.jar
|
||||
destination: build
|
||||
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue