You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
551 B
31 lines
551 B
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
|
|
|