Push from the script
This commit is contained in:
parent
8ee325f74c
commit
f3d5a8cb61
2 changed files with 3 additions and 13 deletions
|
@ -6,22 +6,10 @@ when:
|
|||
steps:
|
||||
- name: build_plugin
|
||||
image: maven:3-eclipse-temurin-21
|
||||
secrets: [docker_token]
|
||||
commands:
|
||||
- ls && echo ---------
|
||||
- ./build-plugin.sh
|
||||
- name: upload_package
|
||||
image: ocram85/plugin-gitea-package:latest
|
||||
pull: true
|
||||
secrets: [docker_token]
|
||||
settings:
|
||||
user: simcop2387
|
||||
password:
|
||||
from_secret: docker_token
|
||||
debug: "true"
|
||||
owner: "plugins"
|
||||
package_name: "coreprotect"
|
||||
package_version: "build-${CI_PIPELINE_NUMBER}"
|
||||
file_source: "/tmp/target/CoreProtect.jar"
|
||||
|
||||
# settings:
|
||||
# build_args:
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue