This commit is contained in:
parent
89f65e6025
commit
2119809d2a
@ -1,10 +1,8 @@
|
|||||||
steps:
|
steps:
|
||||||
- name: build-release
|
- name: build-release
|
||||||
image: alpine
|
image: alpine
|
||||||
secrets: [GITEA_TOKEN]
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: tag
|
||||||
- branch: main
|
|
||||||
commands:
|
commands:
|
||||||
- apk add openjdk21
|
- apk add openjdk21
|
||||||
- apk add wget
|
- apk add wget
|
||||||
@ -17,7 +15,7 @@ steps:
|
|||||||
- name: deploy-build
|
- name: deploy-build
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
when:
|
||||||
- event: [push, tag]
|
- event: tag
|
||||||
environment:
|
environment:
|
||||||
GITEATKN:
|
GITEATKN:
|
||||||
from_secret: GITEA_TOKEN
|
from_secret: GITEA_TOKEN
|
||||||
@ -28,17 +26,17 @@ steps:
|
|||||||
- apk add tea
|
- apk add tea
|
||||||
- apk add wget
|
- apk add wget
|
||||||
- tea login add --name=temp --url=https://git.vertinext.com/ --token=$GITEATKN
|
- tea login add --name=temp --url=https://git.vertinext.com/ --token=$GITEATKN
|
||||||
- tea releases create --asset "build/lotj-ui.mpackage" --asset "build/lotj-ui.xml" --tag latest --title "Latest Compiled Release"
|
- tea releases create --asset "build/lotj-ui.mpackage" --asset "build/lotj-ui.xml" --tag ${CI_COMMIT_TAG} --title "Latest Compiled Release" --note "Use .mpackage for Mudlet and .xml for Mushclient"
|
||||||
- wget "https://gotify.vertinext.com/message?token=$GOTOKEN" --post-data "title=${CI} - ${CI_REPO_NAME}&message=New release ${CI_COMMIT_TAG} built and deployed.&priority=0" -O /dev/null
|
- wget "https://gotify.vertinext.com/message?token=$GOTOKEN" --post-data "title=${CI} - ${CI_REPO_NAME}&message=New release ${CI_COMMIT_TAG} built and deployed.&priority=0" -O /dev/null
|
||||||
|
|
||||||
- name: notify-on-branch-push
|
- name: notify-on-branch-push
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: [push, pull_request, tag, release]
|
||||||
- status: [success, failure]
|
- status: [success, failure]
|
||||||
environment:
|
environment:
|
||||||
GOTOKEN:
|
GOTOKEN:
|
||||||
from_secret: GOTIFY_TOKEN
|
from_secret: GOTIFY_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- apk add wget
|
- 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
|
- wget "https://gotify.vertinext.com/message?token=$GOTOKEN" --post-data "title=${CI} - ${CI_REPO_NAME}&message=New ${CI_PIPELINE_EVENT} to ${CI_REPO_NAME}/${CI_COMMIT_BRANCH}.&priority=0" -O /dev/null
|
Loading…
Reference in New Issue
Block a user