templates + arm64 build (slow)
This commit is contained in:
30
haven-notify/template/update.tmpl
Normal file
30
haven-notify/template/update.tmpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{{/*
|
||||
Update Notification Template
|
||||
Variables expected:
|
||||
- .host: The host where the update occurred
|
||||
- .asset: The asset being updated (Docker or k8s)
|
||||
- .time: The time in seconds that the script took to run
|
||||
|
||||
Template Functions Available:
|
||||
- formatTime: Formats time in seconds to a human-readable format
|
||||
*/}}
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "🔄 Update - {{.asset}}",
|
||||
"description": "**{{.host}}** has successfully updated **{{.asset}}**! ✅",
|
||||
"color": 3447003,
|
||||
"fields": [
|
||||
{
|
||||
"name": "⏱️ Time Taken",
|
||||
"value": "{{if .time}}{{formatTime .time}}{{else}}Unknown{{end}} seconds",
|
||||
"inline": true
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
},
|
||||
"timestamp": "{{formatTime .timestamp}}"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user