MemoryCache/.drone.yml

29 lines
625 B
YAML
Raw Permalink Normal View History

2022-01-30 17:49:22 -05:00
---
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