maze-generator/.drone.yml

39 lines
844 B
YAML
Raw Normal View History

2020-10-03 01:07:59 +02:00
kind: pipeline
type: docker
name: default
steps:
2023-04-04 01:55:49 +02:00
- name: build
2024-05-17 23:44:11 +02:00
image: maven:3.9-eclipse-temurin-21
2020-10-03 01:07:59 +02:00
commands:
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
2023-04-04 01:55:49 +02:00
when:
ref:
include:
- refs/head/master
- refs/head/feature/**
- refs/tags/**
- name: test
2024-05-17 23:44:11 +02:00
image: maven:3.9-eclipse-temurin-21
2023-04-04 01:55:49 +02:00
commands:
2020-10-03 01:07:59 +02:00
- mvn test -B
when:
branch:
include:
- master
- feature/*
2020-10-04 23:17:37 +02:00
- name: deploy
2024-05-17 23:44:11 +02:00
image: maven:3.9-eclipse-temurin-21
2020-10-04 23:17:37 +02:00
environment:
REPO_TOKEN:
from_secret: repo-token
2023-05-16 02:26:45 +02:00
REPO_TOKEN_OSSRH:
from_secret: repo-token-ossrh
2020-10-04 23:17:37 +02:00
commands:
2020-10-06 01:53:09 +02:00
- mvn -s maven-settings.xml deploy -DskipTests=true
2023-04-04 01:55:49 +02:00
when:
2020-10-04 23:17:37 +02:00
branch:
- master
event:
exclude:
2023-04-04 01:55:49 +02:00
- pull_request