adding test containers
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
This commit is contained in:
@@ -1,35 +1,22 @@
|
||||
{{/*
|
||||
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/GB automatically
|
||||
*/}}
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "📦 Backup - {{.title}}",
|
||||
"description": "**{{.asset}}** has been backup-ed successfully! ✅🫡\n",
|
||||
"title": {{json (printf "📦 Backup - %s" .Title)}},
|
||||
"description": {{json (printf "**%s** has been backed up successfully! ✅🫡\n" .Asset)}},
|
||||
"color": 3066993,
|
||||
"fields": [
|
||||
{
|
||||
"name": "💾 Backup Size",
|
||||
"value": "{{if .backupsizeinmb}}{{formatSize .backupsizeinmb}}{{else}}Unknown{{end}}",
|
||||
"value": {{json (formatSize .BackupSizeInMB)}},
|
||||
"inline": true
|
||||
}
|
||||
{{- if .extra}}
|
||||
{{- range $index, $field := .extra}},
|
||||
{{- range .Extra}},
|
||||
{
|
||||
"name": "{{$field.name}}",
|
||||
"value": "{{$field.value}}",
|
||||
"name": {{json .Name}},
|
||||
"value": {{json .Value}},
|
||||
"inline": true
|
||||
}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
|
||||
Reference in New Issue
Block a user