38 lines
726 B
YAML
38 lines
726 B
YAML
pipeline:
|
|
backend-build:
|
|
image: maven:3.9-eclipse-temurin-17
|
|
commands:
|
|
- echo "Building backend + frontend"
|
|
- mvn clean install -Pprod -DskipTests
|
|
when:
|
|
branch:
|
|
include:
|
|
- main
|
|
- master
|
|
- develop
|
|
|
|
test:
|
|
image: maven:3.9-eclipse-temurin-17
|
|
commands:
|
|
- echo "Running tests"
|
|
- mvn test
|
|
|
|
publish-artifact:
|
|
image: alpine
|
|
commands:
|
|
- echo "Staging JAR to /build"
|
|
- mkdir -p /build
|
|
- cp target/*.jar /build/
|
|
when:
|
|
branch:
|
|
include:
|
|
- main
|
|
- master
|
|
volumes:
|
|
- name: build
|
|
path: /build
|
|
|
|
volumes:
|
|
- name: build
|
|
host:
|
|
path: /tmp/woodpecker-artifacts
|