29 lines
625 B
YAML
29 lines
625 B
YAML
|
---
|
||
|
global-variables:
|
||
|
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:
|
||
|
MAVEN_REPOSITORY_URL: https://archiva.fyloz.dev/repository/internal/
|
||
|
MAVEN_REPOSITORY_USERNAME:
|
||
|
from_secret: maven_repository_username
|
||
|
MAVEN_REPOSITORY_PASSWORD:
|
||
|
from_secret: maven_repository_password
|
||
|
commands:
|
||
|
- gradle publish -Pversion=${DRONE_TAG}
|
||
|
when:
|
||
|
event:
|
||
|
- tag
|