mdns-explorer/.drone.yml

23 lines
709 B
YAML
Raw Normal View History

2023-08-14 15:58:57 +00:00
---
kind: pipeline
name: default
type: docker
#platform:
# os: linux
# arch: amd64
steps:
2023-08-14 17:35:20 +00:00
- name: jpackage
2023-08-16 08:40:02 +00:00
image: docker.io/eclipse-temurin:17
2023-08-14 15:58:57 +00:00
environment:
AUTH_TOKEN: # Gitea access token ENV variable
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
commands:
2023-08-16 08:22:06 +00:00
- apt-get update && apt-get install -y dpkg-dev rpm unzip zip curl
2023-08-14 16:25:58 +00:00
- ./gradlew --no-daemon clean build jpackage
2023-08-14 17:35:20 +00:00
- for file in build/jpackage/*.* ; 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-08-14 15:58:57 +00:00
when:
event:
- tag