From 6eac4dedec3baed6cc29862d6d307ac4332273b5 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Mon, 14 Aug 2023 18:08:19 +0200 Subject: [PATCH] Test drone builds. --- .drone.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1a3a141..9c40b9b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,9 @@ steps: from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above commands: - apt-get update && apt-get install -y dpkg-dev unzip zip curl - - ./gradlew --quiet --no-daemon build jpackage + - curl -s 'https://get.sdkman.io' | bash + - source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca + - source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage - for file in build/jpackage/*.{rpm,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 when: event: @@ -36,8 +38,10 @@ steps: AUTH_TOKEN: # Gitea access token ENV variable from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above commands: - - dnf -y install unzip zip rpm-build - - ./gradlew --quiet --no-daemon build jpackage + - dnf -y install unzip zip curl rpm-build + - curl -s 'https://get.sdkman.io' | bash + - source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca + - source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage - for file in build/jpackage/*.{rpm,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 when: event: