jnetperf/.drone.yml

24 lines
1.1 KiB
YAML
Raw Normal View History

2023-06-23 17:53:52 +00:00
---
kind: pipeline
name: default
type: docker
steps:
- name: test
image: eclipse-temurin:8-jdk
commands:
2023-06-24 07:04:58 +00:00
- ./gradlew --quiet --no-daemon test
2023-06-23 17:53:52 +00:00
- name: build
image: eclipse-temurin:8-jdk
environment:
AUTH_TOKEN: # Gitea access token ENV variable
2023-06-24 07:04:58 +00:00
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
2023-06-23 17:53:52 +00:00
commands:
2023-06-24 07:04:58 +00:00
- ./gradlew --quiet --no-daemon build packages
- for file in build/libs/*-all.jar ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
- for file in build/distributions/*.deb ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
- for file in build/distributions/*.rpm ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
2023-06-23 17:53:52 +00:00
when:
event:
- tag