maze-generator/.drone.yml

37 lines
773 B
YAML
Raw Permalink 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
image: maven:3.8-openjdk-18-slim
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
image: maven:3.8-openjdk-18-slim
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
2023-04-04 01:55:49 +02:00
image: maven:3.8-openjdk-18-slim
2020-10-04 23:17:37 +02:00
environment:
REPO_TOKEN:
from_secret: repo-token
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