coreprotect-builder/build-plugin.sh
2024-07-30 11:01:23 -04:00

10 lines
422 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
cd CoreProtect/
mvn install
mkdir /tmp/target
cp -v /woodpecker/src/gitea.simcop2387.info/simcop2387/coreprotect-builder/CoreProtect/target/CoreProtect-*.jar /tmp/target/CoreProtect.jar
curl --user "simcop2387:${docker_token}" --upload-file /tmp/target/CoreProtect.jar "https://gitea.simcop2387.info/api/packages/simcop2387/generic/CoreProtectJar/b-${CI_PIPELINE_NUMBER}/CoreProtect.jar"