2023-03-26 22:44:17 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-03-27 16:49:29 +02:00
|
|
|
name: commit
|
2023-03-26 22:44:17 +02:00
|
|
|
|
|
|
|
steps:
|
2023-03-27 16:49:29 +02:00
|
|
|
- name: checks
|
2023-03-27 13:19:58 +02:00
|
|
|
image: eclipse-temurin:17-jdk
|
|
|
|
commands:
|
2023-03-27 15:47:25 +02:00
|
|
|
- apt-get update -qq && apt-get install -qy python3 pip git && pip install pre-commit
|
2023-03-27 13:19:58 +02:00
|
|
|
- pre-commit run --all-files
|
2023-03-27 16:49:29 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: pr
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: tests
|
2023-03-27 09:24:36 +02:00
|
|
|
image: quay.io/testcontainers/dind-drone-plugin
|
2023-03-27 09:38:45 +02:00
|
|
|
environment:
|
|
|
|
CI_WORKSPACE: "/drone/src"
|
|
|
|
settings:
|
2023-03-27 10:25:22 +02:00
|
|
|
cmd: ./mvnw -B test
|
2023-03-27 09:38:45 +02:00
|
|
|
build_image: eclipse-temurin:17-jdk
|
|
|
|
prefetch_images:
|
|
|
|
- "postgres:13-alpine"
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
# Specify docker:dind as a service
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
2023-03-27 13:19:58 +02:00
|
|
|
temp: {}
|
2023-03-27 16:49:29 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_requests
|
|
|
|
- cron
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: artifacts
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: packaging
|
|
|
|
image: eclipse-temurin:17-jdk
|
|
|
|
commands:
|
|
|
|
- ./mvnw package -B -DskipTests=true -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true
|
|
|
|
- name: dockerfile
|
|
|
|
image: thegeeklab/drone-docker-buildx:23
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
pull_image: true
|
|
|
|
dry_run: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- devel
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|