Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5626dc1a90 | |||
268110ac8d |
33
.drone.yml
33
.drone.yml
@ -2,13 +2,15 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
type: docker
|
type: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Run the Gradle build
|
# ============ MAIN BUILD ============
|
||||||
|
- name: run the Gradle build
|
||||||
image: glmdev/java-gradle-maven
|
image: glmdev/java-gradle-maven
|
||||||
commands:
|
commands:
|
||||||
- ./prep_workspace.bash
|
- ./prep_workspace.bash
|
||||||
- ./gradlew build shadowJar reobfShadowJar
|
- ./gradlew build shadowJar reobfShadowJar
|
||||||
- ls ./build/libs
|
- ls ./build/libs
|
||||||
|
|
||||||
|
# ============ TAG RELEASE ============
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
@ -22,6 +24,7 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
# ============ NOTIFICATIONS ============
|
||||||
- name: send build success notifications
|
- name: send build success notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@ -37,17 +40,17 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
- name: send build error notifications
|
- name: send build error notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls:
|
urls:
|
||||||
from_secret: notify_webhook_url
|
from_secret: notify_webhook_url
|
||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"title": "Drone-CI [matterlink-reboot @ ${DRONE_BUILD_NUMBER}]",
|
"title": "Drone-CI [matterlink-reboot @ ${DRONE_BUILD_NUMBER}]",
|
||||||
"message": "Build failed! (Changes by ${DRONE_COMMIT_AUTHOR})",
|
"message": "Build failed! (Changes by ${DRONE_COMMIT_AUTHOR})",
|
||||||
"priority": 6
|
"priority": 6
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
status: failure
|
status: failure
|
Loading…
Reference in New Issue
Block a user