2020-10-06 01:59:54 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: test
|
2023-03-25 11:03:41 +01:00
|
|
|
image: maven:3.8-openjdk-18-slim
|
2020-10-06 01:59:54 +02:00
|
|
|
commands:
|
|
|
|
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
|
|
|
- mvn test -B
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- feature/*
|
|
|
|
- name: deploy
|
2023-03-25 11:03:41 +01:00
|
|
|
image: maven:3.8-openjdk-18-slim
|
2020-10-06 01:59:54 +02:00
|
|
|
environment:
|
|
|
|
REPO_TOKEN:
|
|
|
|
from_secret: repo-token
|
|
|
|
commands:
|
|
|
|
- mvn -s maven-settings.xml deploy -DskipTests=true
|
2023-03-25 11:03:41 +01:00
|
|
|
when:
|
2020-10-06 01:59:54 +02:00
|
|
|
branch:
|
2022-02-02 02:14:23 +01:00
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
2023-03-31 10:18:44 +02:00
|
|
|
- pull_request
|
|
|
|
- name: build_docker_image
|
|
|
|
plugin: docker
|
2023-03-31 10:19:20 +02:00
|
|
|
commands:
|
|
|
|
- docker image build -f docker/Dockerfile .
|
2023-03-31 10:18:44 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- feature/docker
|