2020-06-25 09:43:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: java:openjdk-8
|
|
|
|
volumes:
|
|
|
|
- name: gradle
|
|
|
|
path: /root/.gradle
|
|
|
|
commands:
|
|
|
|
- ./gradlew check
|
2020-06-25 12:03:52 +00:00
|
|
|
- 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
|
2020-06-25 09:43:45 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gradle
|
|
|
|
host:
|
|
|
|
path: /home/drone/.gradle
|