kind: pipeline name: default type: docker steps: # ============ 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: api_key: from_secret: gitea_api_key base_url: https://code.garrettmills.dev files: - ./build/libs/matterlinkreboot-${DRONE_TAG}-all.jar - ./build/libs/matterlinkreboot-${DRONE_TAG}.jar title: ${DRONE_TAG} when: event: tag # ============ NOTIFICATIONS ============ - name: send build success 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 completed successfully. (Changes by ${DRONE_COMMIT_AUTHOR})", "priority": 4 } 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