updating templates
This commit is contained in:
@@ -90,10 +90,3 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd haven-notify/deploy
|
cd haven-notify/deploy
|
||||||
kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify
|
kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify
|
||||||
|
|
||||||
- name: Send notification of deployment
|
|
||||||
run: |
|
|
||||||
curl -H "Content-Type: application/json" \
|
|
||||||
-X POST \
|
|
||||||
-d '{"title": "🚀 Haven Notify deployed!", "message": "Haven Notify has been successfully deployed and restarted."}' \
|
|
||||||
http://haven.notify/notify
|
|
||||||
|
@@ -33,8 +33,7 @@ Template Functions Available:
|
|||||||
],
|
],
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "✨ Haven Notify ✨"
|
"text": "✨ Haven Notify ✨"
|
||||||
}{{if .timestamp}},
|
}
|
||||||
"timestamp": "{{formatTime .timestamp}}"{{end}}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -30,8 +30,7 @@ Variables expected:
|
|||||||
],
|
],
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "✨ Haven Notify ✨"
|
"text": "✨ Haven Notify ✨"
|
||||||
},
|
}
|
||||||
"timestamp": "{{formatTime .timestamp}}"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@@ -17,14 +17,13 @@ Template Functions Available:
|
|||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "⏱️ Time Taken",
|
"name": "⏱️ Time Taken",
|
||||||
"value": "{{if .time}}{{formatTime .time}}{{else}}Unknown{{end}} seconds",
|
"value": "{{if .time}}{{.time}}{{else}}Unknown{{end}} seconds",
|
||||||
"inline": true
|
"inline": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "✨ Haven Notify ✨"
|
"text": "✨ Haven Notify ✨"
|
||||||
},
|
}
|
||||||
"timestamp": "{{formatTime .timestamp}}"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user