maze-generator/.drone.yml
Manuel Friedli 5ef5837349
Some checks failed
continuous-integration/drone/push Build is failing
Use java25 as build image and really switch to main branch.
2026-01-24 00:02:55 +01:00

38 lines
838 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: maven:3.9-eclipse-temurin-25
commands:
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
when:
ref:
include:
- refs/head/main
- refs/head/feature/**
- refs/tags/**
- name: test
image: maven:3.9-eclipse-temurin-25
commands:
- mvn test -B
when:
branch:
include:
- main
- feature/*
- name: deploy
image: maven:3.9-eclipse-temurin-25
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:
- main
event:
exclude:
- pull_request