Iteration 0

This commit is contained in:
Urban Modig
2025-10-04 21:21:41 +02:00
commit aef0a4c98f
14 changed files with 577 additions and 0 deletions

47
.drone.yml Normal file
View File

@ -0,0 +1,47 @@
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: registry.local:5000
repo: registry.local:5000/hemhub/api
tags:
- ${DRONE_BRANCH/\//-}-${DRONE_COMMIT_SHA:0:7}
- latest
dockerfile: Dockerfile
when:
branch:
include: [ main, develop ]
event:
include: [ push, pull_request, tag ]
- name: publish-tag
image: plugins/docker
settings:
registry: registry.local:5000
repo: registry.local:5000/hemhub/api
tags:
- ${DRONE_TAG}
dockerfile: Dockerfile
when:
event:
include: [ tag ]
trigger:
event:
- push
- pull_request
- tag