updating templates
This commit is contained in:
@@ -89,11 +89,4 @@ jobs:
|
||||
- name: Rollout restart haven-notify
|
||||
run: |
|
||||
cd haven-notify/deploy
|
||||
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
|
||||
kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify
|
@@ -33,8 +33,7 @@ Template Functions Available:
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
}{{if .timestamp}},
|
||||
"timestamp": "{{formatTime .timestamp}}"{{end}}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -30,8 +30,7 @@ Variables expected:
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
},
|
||||
"timestamp": "{{formatTime .timestamp}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -17,14 +17,13 @@ Template Functions Available:
|
||||
"fields": [
|
||||
{
|
||||
"name": "⏱️ Time Taken",
|
||||
"value": "{{if .time}}{{formatTime .time}}{{else}}Unknown{{end}} seconds",
|
||||
"value": "{{if .time}}{{.time}}{{else}}Unknown{{end}} seconds",
|
||||
"inline": true
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
},
|
||||
"timestamp": "{{formatTime .timestamp}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user