38 lines
844 B
YAML
38 lines
844 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
steps:
|
|
- name: build
|
|
image: maven:3.9-eclipse-temurin-21
|
|
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.9-eclipse-temurin-21
|
|
commands:
|
|
- mvn test -B
|
|
when:
|
|
branch:
|
|
include:
|
|
- master
|
|
- feature/*
|
|
- name: deploy
|
|
image: maven:3.9-eclipse-temurin-21
|
|
environment:
|
|
REPO_TOKEN:
|
|
from_secret: repo-token
|
|
REPO_TOKEN_OSSRH:
|
|
from_secret: repo-token-ossrh
|
|
commands:
|
|
- mvn -s maven-settings.xml deploy -DskipTests=true
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
exclude:
|
|
- pull_request
|