maze-server/.drone.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

2020-10-06 01:59:54 +02:00
kind: pipeline
type: docker
name: default
steps:
2023-03-31 10:47:33 +02:00
- name: build
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
2023-03-31 10:47:33 +02:00
when:
branch:
include:
- master
- feature/*
- name: test
image: maven:3.8-openjdk-18-slim
commands:
2020-10-06 01:59:54 +02:00
- mvn test -B
when:
branch:
include:
- master
2023-03-31 10:46:07 +02:00
# - feature/*
2020-10-06 01:59:54 +02:00
- 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:
2023-03-31 10:46:07 +02:00
registry: gittr.ch
2023-03-31 10:33:02 +02:00
username: manuel
password:
from_secret: docker-token
2023-03-31 10:50:52 +02:00
repo: gittr.ch/java/labyrinth
2023-03-31 10:33:02 +02:00
tags:
- latest
dockerfile: docker/Dockerfile
2023-03-31 10:43:26 +02:00
# auto_tag: true
# auto_tag_suffix: "-ci"
debug: true
launch_debug: true
2023-03-31 10:18:44 +02:00
when:
branch:
- feature/docker