From d25a7a6821eb2d3884e90f9c58f5ba9770ec132f Mon Sep 17 00:00:00 2001 From: ccubed Date: Sat, 30 Mar 2024 02:03:15 -0400 Subject: [PATCH] Setup Woodpecker CI Setup Woodpecker CI --- .woodpecker.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..8a72877 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,42 @@ +steps: + - name: build-release + image: alpine + secrets: [GITEA_TOKEN] + when: + - event: push + - branch: main + commands: + - apk add openjdk21 + - apk add wget + - apk add tar + - wget https://github.com/demonnic/muddler/releases/download/0.13/muddle-shadow-0.13.tar + - tar -xvf muddle-shadow-0.13.tar + - mv muddle-shadow-0.13/lib/muddle-0.13-all.jar muddle.jar + - java -jar muddle.jar + + - name: deploy-build + image: woodpeckerci/plugin-gitea-release + when: + - event: push + - branch: main + settings: + base_url: https://git.vertinext.com + files: + - "build/lotj-ui.mpackage" + - "build/lotj-ui.xml" + api_key: + from_secret: GITEA_TOKEN + target: main + depends_on: build-release + + - name: notify-on-branch-push + image: alpine + when: + - event: push + - status: [success, failure] + environment: + GOTOKEN: + from_secret: GOTIFY_TOKEN + commands: + - apk add wget + - wget "https://gotify.vertinext.com/message?token=$GOTOKEN" --post-data "title=${CI} - ${CI_REPO_NAME}&message=New pipeline running.&priority=0" -O /dev/null \ No newline at end of file