maze-server/.drone.yml

73 lines
1.5 KiB
YAML
Raw Permalink 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
2024-05-18 02:20:31 +02:00
image: maven:3.9-eclipse-temurin-21
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
2024-05-18 02:20:31 +02:00
image: maven:3.9-eclipse-temurin-21
2023-03-31 10:47:33 +02:00
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
2024-05-18 02:20:31 +02:00
image: maven:3.9-eclipse-temurin-21
2020-10-06 01:59:54 +02:00
environment:
REPO_TOKEN:
from_secret: repo-token
REPO_TOKEN_OSSRH:
from_secret: repo-token-ossrh
2020-10-06 01:59:54 +02:00
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
repo: gittr.ch/java/a-maze-r
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/a-maze-r
2023-04-01 00:22:31 +02:00
tags:
- latest
- ${DRONE_TAG}
dockerfile: docker/Dockerfile
2023-04-01 00:42:59 +02:00
when:
event:
include:
- tag