Test drone builds.
This commit is contained in:
parent
d57541d0eb
commit
1e1bcf1996
28
.drone.yml
28
.drone.yml
|
@ -10,11 +10,10 @@ type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: test
|
# - name: test
|
||||||
image: docker.io/bellsoft/liberica-openjdk-debian:17
|
# image: docker.io/bellsoft/liberica-openjdk-debian:17
|
||||||
commands:
|
# commands:
|
||||||
- ./gradlew --quiet --no-daemon test
|
# - ./gradlew --quiet --no-daemon test
|
||||||
|
|
||||||
|
|
||||||
- name: build-deb
|
- name: build-deb
|
||||||
image: docker.io/debian:stable
|
image: docker.io/debian:stable
|
||||||
|
@ -22,26 +21,27 @@ steps:
|
||||||
AUTH_TOKEN: # Gitea access token ENV variable
|
AUTH_TOKEN: # Gitea access token ENV variable
|
||||||
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y dpkg-dev unzip zip curl
|
- apt-get update && apt-get install -y dpkg-dev unzip zip curl openjdk-17-jdk
|
||||||
- bash -c "curl -s 'https://get.sdkman.io' | bash"
|
# - bash -c "curl -s 'https://get.sdkman.io' | bash"
|
||||||
- bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
||||||
- bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
||||||
|
- ./gradlew --no-daemon clean build jpackage
|
||||||
- for file in build/jpackage/*.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/jpackage/*.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:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
|
||||||
- name: build-rpm
|
- name: build-rpm
|
||||||
image: docker.io/almalinux:8
|
image: docker.io/almalinux:8
|
||||||
environment:
|
environment:
|
||||||
AUTH_TOKEN: # Gitea access token ENV variable
|
AUTH_TOKEN: # Gitea access token ENV variable
|
||||||
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
||||||
commands:
|
commands:
|
||||||
- dnf -y install unzip zip curl rpm-build
|
- dnf -y install unzip zip curl rpm-build java-17-openjdk
|
||||||
- bash -c "curl -s 'https://get.sdkman.io' | bash"
|
# - bash -c "curl -s 'https://get.sdkman.io' | bash"
|
||||||
- bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
||||||
- bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
||||||
|
- ./gradlew --no-daemon clean build jpackage
|
||||||
- for file in build/jpackage/*.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
|
- for file in build/jpackage/*.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
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
|
Loading…
Reference in a new issue