maze-server/.drone.yml

71 lines
1.5 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:
2023-04-01 00:55:28 +02:00
ref:
2023-04-01 00:48:49 +02:00
include:
2023-04-01 00:55:28 +02:00
- refs/head/master
- refs/head/feature/**
- refs/tags/**
2023-03-31 10:47:33 +02:00
- 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-04-01 00:22:31 +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:18:44 +02:00
when:
branch:
2023-04-01 00:22:31 +02:00
- master
event:
exclude:
- pull_request
- tag
- name: build_docker_image_release
image: plugins/docker
settings:
registry: gittr.ch
username: manuel
password:
from_secret: docker-token
repo: gittr.ch/java/labyrinth
tags:
- latest
- ${DRONE_TAG}
dockerfile: docker/Dockerfile
2023-04-01 00:42:59 +02:00
when:
event:
include:
- tag