Iteration 0
This commit is contained in:
47
.drone.yml
Normal file
47
.drone.yml
Normal 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
|
||||
Reference in New Issue
Block a user