lotj-mudlet-ui/.woodpecker.yaml
ccubed 354e4e0907
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Yet again
2024-03-30 03:44:54 -04:00

42 lines
1.4 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: alpine
when:
- evaluate: 'CI_PIPELINE_EVENT in ["push","tag"] && CI_COMMIT_TAG != ""'
environment:
GITEATKN:
from_secret: GITEA_TOKEN
depends_on: build-release
commands:
- apk add wget
- wget -O teacli https://dl.gitea.com/tea/main/tea-main-linux-amd64
- chmod +x teacli
- ./teacli login add --name=temp --url=https://git.vertinext.com/ --token=$GITEATKN
- ./teacli releases create --asset "build/lotj-ui.mpackage" --asset "build/lotj-ui.xml" --tag ${CI_COMMIT_TAG}
- 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