32 lines
551 B
YAML
32 lines
551 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: java:openjdk-8
|
|
volumes:
|
|
- name: gradle
|
|
path: /root/.gradle
|
|
commands:
|
|
- ./gradlew check
|
|
- name: publish
|
|
image: java:openjdk-8
|
|
volumes:
|
|
- name: gradle
|
|
path: /root/.gradle
|
|
environment:
|
|
BINTRAY_KEY:
|
|
from_secret: bintray-key
|
|
BINTRAY_USER:
|
|
from_secret: bintray-user
|
|
commands:
|
|
- ./gradlew bintrayUpload -Pbintray.key=$BINTRAY_KEY -Pbintray.user=$BINTRAY_USER
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
volumes:
|
|
- name: gradle
|
|
host:
|
|
path: /home/drone/.gradle
|