Compare commits

...

2 Commits

Author SHA1 Message Date
5626dc1a90
Clean up drone file
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2021-02-09 11:04:15 -06:00
268110ac8d
Fix drone yaml syntax
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2021-02-09 11:02:49 -06:00

View File

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