chore: make CI ligther
parent
200d86759c
commit
623328633f
58
.drone.yml
58
.drone.yml
|
@ -1,14 +1,21 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: commit
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Static checks
|
- name: checks
|
||||||
image: eclipse-temurin:17-jdk
|
image: eclipse-temurin:17-jdk
|
||||||
commands:
|
commands:
|
||||||
- apt-get update -qq && apt-get install -qy python3 pip git && pip install pre-commit
|
- apt-get update -qq && apt-get install -qy python3 pip git && pip install pre-commit
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files
|
||||||
- name: UT & IT Tests
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: pr
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: tests
|
||||||
image: quay.io/testcontainers/dind-drone-plugin
|
image: quay.io/testcontainers/dind-drone-plugin
|
||||||
environment:
|
environment:
|
||||||
CI_WORKSPACE: "/drone/src"
|
CI_WORKSPACE: "/drone/src"
|
||||||
|
@ -20,22 +27,6 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
- name: Packaging
|
|
||||||
image: eclipse-temurin:17-jdk
|
|
||||||
commands:
|
|
||||||
- ./mvnw package -B -DskipTests=true
|
|
||||||
depends_on:
|
|
||||||
- UT & IT Tests
|
|
||||||
- Static checks
|
|
||||||
- name: Docker image
|
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
|
||||||
privileged: true
|
|
||||||
settings:
|
|
||||||
pull_image: true
|
|
||||||
dry_run: true
|
|
||||||
depends_on:
|
|
||||||
- UT & IT Tests
|
|
||||||
- Static checks
|
|
||||||
|
|
||||||
# Specify docker:dind as a service
|
# Specify docker:dind as a service
|
||||||
services:
|
services:
|
||||||
|
@ -49,3 +40,32 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -9,6 +9,7 @@ repos:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: "^.*\\.vm$"
|
exclude: "^.*\\.vm$"
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
args: [--allow-multiple-documents]
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
|
|
Loading…
Reference in New Issue