Files
server-scripts/haven-notify/template/backup.tmpl
Jose Henrique cd57837696
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 36s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m5s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 17s
templates + arm64 build (slow)
2025-08-23 20:27:49 -03:00

41 lines
1.1 KiB
Cheetah

{{/*
Docker Backup Notification Template
Variables expected:
- .title: The backup title/name
- .asset: The asset being backed up
- .backupsizeinmb: The backup size in MB (will be formatted automatically)
- .extra: Optional array of additional fields with .name and .value
Template Functions Available:
- formatSize: Formats size in MB/GiB automatically
*/}}
{
"embeds": [
{
"title": "📦 Docker Backup - {{.title}}",
"description": "**{{.asset}}** has been backup-ed successfully! ✅🫡\n",
"color": 3066993,
"fields": [
{
"name": "💾 Backup Size",
"value": "{{if .backupsizeinmb}}{{formatSize .backupsizeinmb}}{{else}}Unknown{{end}}",
"inline": true
}
{{- if .extra}}
{{- range $index, $field := .extra}},
{
"name": "{{$field.name}}",
"value": "{{$field.value}}",
"inline": true
}
{{- end}}
{{- end}}
],
"footer": {
"text": "✨ Haven Notify ✨"
}{{if .timestamp}},
"timestamp": "{{formatTime .timestamp}}"{{end}}
}
]
}