Database-Manager/.drone.yml

35 lines
595 B
YAML

---
global-variables:
release: &release ${DRONE_BRANCH##**/}
gradle-image: &gradle-image gradle:7.1-jdk11
kind: pipeline
name: default
type: docker
steps:
- name: gradle-test
image: *gradle-image
commands:
- gradle test
when:
branch: develop
- name: publish
image: *gradle-image
environment:
ARCHIVA_USERNAME:
from_secret: archiva_username
ARCHIVA_PASSWORD:
from_secret: archiva_password
commands:
- gradle publish
when:
branch: release/**
trigger:
branch:
- develop
- release/**
- master