Manuel Friedli
874d4208ef
All checks were successful
continuous-integration/drone/push Build is passing
36 lines
773 B
YAML
36 lines
773 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
steps:
|
|
- name: build
|
|
image: maven:3.8-openjdk-18-slim
|
|
commands:
|
|
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
|
when:
|
|
ref:
|
|
include:
|
|
- refs/head/master
|
|
- refs/head/feature/**
|
|
- refs/tags/**
|
|
- name: test
|
|
image: maven:3.8-openjdk-18-slim
|
|
commands:
|
|
- mvn test -B
|
|
when:
|
|
branch:
|
|
include:
|
|
- master
|
|
- feature/*
|
|
- name: deploy
|
|
image: maven:3.8-openjdk-18-slim
|
|
environment:
|
|
REPO_TOKEN:
|
|
from_secret: repo-token
|
|
commands:
|
|
- mvn -s maven-settings.xml deploy -DskipTests=true
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
exclude:
|
|
- pull_request
|