Files
hemhub/.drone.yml
Urban Modig 7cb6265125
All checks were successful
continuous-integration/drone/push Build is passing
Add JaCoCo for test coverage and update Drone CI settings
Integrate JaCoCo to enforce and report test coverage with a minimum threshold of 65%. Update Drone CI configuration to use a new Docker registry (rubble.se:5000) and add support for authentication with secrets.
2025-10-05 10:20:50 +02:00

56 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: ci
steps:
- name: test
image: gradle:8.10.2-jdk21
commands:
- gradle --no-daemon clean test
- name: build-jar
image: gradle:8.10.2-jdk21
commands:
- gradle --no-daemon bootJar
- name: build-image
image: plugins/docker
settings:
registry: rubble.se:5000
repo: rubble.se:5000/hemhub/api
tags:
- ${DRONE_BRANCH/\//-}-${DRONE_COMMIT_SHA:0:7}
- latest
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
branch:
include: [ main, develop ]
event:
include: [ push, pull_request, tag ]
- name: publish-tag
image: plugins/docker
settings:
registry: rubble.se:5000
repo: rubble.se:5000/hemhub/api
tags:
- ${DRONE_TAG}
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
include: [ tag ]
trigger:
event:
- push
- pull_request
- tag