maze-server/.drone.yml

44 lines
946 B
YAML
Raw Normal View History

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
2023-03-31 10:20:10 +02:00
image: plugins/docker
2023-03-31 10:33:02 +02:00
settings:
registry: gittr.ch
username: manuel
password:
from_secret: docker-token
repo: java/labyrinth-server
tags:
- latest
dockerfile: docker/Dockerfile
auto_tag: true
auto_tag_suffix: "-ci"
2023-03-31 10:18:44 +02:00
when:
branch:
- feature/docker