Add .woodpecker.yml
This commit is contained in:
parent
af63377a1e
commit
a12e2d62c2
1 changed files with 38 additions and 0 deletions
38
.woodpecker.yml
Normal file
38
.woodpecker.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue