[ci] Add changes and build to ntfy
This commit is contained in:
18
.drone.yml
18
.drone.yml
@ -50,8 +50,15 @@ steps:
|
|||||||
topic: drone
|
topic: drone
|
||||||
priority: low
|
priority: low
|
||||||
tags:
|
tags:
|
||||||
- failure
|
- success
|
||||||
- vrobbler
|
- vrobbler
|
||||||
|
actions:
|
||||||
|
- action: view
|
||||||
|
label: View changes
|
||||||
|
url: "{{ .Commit.Link }}"
|
||||||
|
- action: view
|
||||||
|
label: View build
|
||||||
|
url: "{{ .Build.Link }}"
|
||||||
- name: build failure notification
|
- name: build failure notification
|
||||||
image: parrazam/drone-ntfy:0.3-linux-amd64
|
image: parrazam/drone-ntfy:0.3-linux-amd64
|
||||||
when:
|
when:
|
||||||
@ -61,8 +68,15 @@ steps:
|
|||||||
topic: drone
|
topic: drone
|
||||||
priority: high
|
priority: high
|
||||||
tags:
|
tags:
|
||||||
- success
|
- failure
|
||||||
- vrobbler
|
- vrobbler
|
||||||
|
actions:
|
||||||
|
- action: view
|
||||||
|
label: View changes
|
||||||
|
url: "{{ .Commit.Link }}"
|
||||||
|
- action: view
|
||||||
|
label: View build
|
||||||
|
url: "{{ .Build.Link }}"
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: docker
|
||||||
host:
|
host:
|
||||||
|
|||||||
@ -54,6 +54,7 @@ jobs:
|
|||||||
-H "Title: vrobbler CI success" \
|
-H "Title: vrobbler CI success" \
|
||||||
-H "Priority: low" \
|
-H "Priority: low" \
|
||||||
-H "Tags: success,vrobbler" \
|
-H "Tags: success,vrobbler" \
|
||||||
|
-H "Actions: view, View changes, ${{ gitea.server_url }}/${{ gitea.repository }}/commit/${{ gitea.sha }}; view, View build, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}" \
|
||||||
-d "✅ Build succeeded: ${{ gitea.repository }} @ ${{ gitea.sha }}" \
|
-d "✅ Build succeeded: ${{ gitea.repository }} @ ${{ gitea.sha }}" \
|
||||||
https://ntfy.unbl.ink/drone
|
https://ntfy.unbl.ink/drone
|
||||||
|
|
||||||
@ -64,6 +65,7 @@ jobs:
|
|||||||
-H "Title: vrobbler CI failure" \
|
-H "Title: vrobbler CI failure" \
|
||||||
-H "Priority: high" \
|
-H "Priority: high" \
|
||||||
-H "Tags: failure,vrobbler" \
|
-H "Tags: failure,vrobbler" \
|
||||||
|
-H "Actions: view, View changes, ${{ gitea.server_url }}/${{ gitea.repository }}/commit/${{ gitea.sha }}; view, View build, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}" \
|
||||||
-d "❌ Build failed: ${{ gitea.repository }} @ ${{ gitea.sha }}" \
|
-d "❌ Build failed: ${{ gitea.repository }} @ ${{ gitea.sha }}" \
|
||||||
https://ntfy.unbl.ink/drone
|
https://ntfy.unbl.ink/drone
|
||||||
|
|
||||||
@ -95,6 +97,7 @@ jobs:
|
|||||||
-H "Title: vrobbler deploy success" \
|
-H "Title: vrobbler deploy success" \
|
||||||
-H "Priority: low" \
|
-H "Priority: low" \
|
||||||
-H "Tags: success,vrobbler,deploy" \
|
-H "Tags: success,vrobbler,deploy" \
|
||||||
|
-H "Actions: view, View changes, ${{ gitea.server_url }}/${{ gitea.repository }}/commit/${{ gitea.sha }}; view, View build, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}" \
|
||||||
-d "🚀 Deploy succeeded: ${{ gitea.ref_name }} (${{ gitea.sha }})" \
|
-d "🚀 Deploy succeeded: ${{ gitea.ref_name }} (${{ gitea.sha }})" \
|
||||||
https://ntfy.unbl.ink/drone
|
https://ntfy.unbl.ink/drone
|
||||||
|
|
||||||
@ -105,5 +108,6 @@ jobs:
|
|||||||
-H "Title: vrobbler deploy failure" \
|
-H "Title: vrobbler deploy failure" \
|
||||||
-H "Priority: high" \
|
-H "Priority: high" \
|
||||||
-H "Tags: failure,vrobbler,deploy" \
|
-H "Tags: failure,vrobbler,deploy" \
|
||||||
|
-H "Actions: view, View changes, ${{ gitea.server_url }}/${{ gitea.repository }}/commit/${{ gitea.sha }}; view, View build, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}" \
|
||||||
-d "💥 Deploy failed: ${{ gitea.ref_name }} (${{ gitea.sha }})" \
|
-d "💥 Deploy failed: ${{ gitea.ref_name }} (${{ gitea.sha }})" \
|
||||||
https://ntfy.unbl.ink/drone
|
https://ntfy.unbl.ink/drone
|
||||||
|
|||||||
Reference in New Issue
Block a user