47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
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]
|
|
depends_on: build-release
|
|
secrets:
|
|
- GITEA_TOKEN
|
|
- TEST_REPO_SECRET
|
|
- TEST_USER_SECRET
|
|
commands:
|
|
- apk add wget
|
|
- echo ${GITEA_TOKEN}
|
|
- echo ${TEST_REPO_SECRET}
|
|
- echo ${TEST_USER_SECRET}
|
|
- wget "https://git.vertinext.com/message?token=${GITEA_TOKEN}" --post-data "title=${CI} - ${CI_REPO_NAME}&message=${CI_BUILD_EVENT} has status ${CI_BUILD_STATUS}&priority=0" -O /dev/null |