templates + arm64 build (slow)
This commit is contained in:
@@ -31,6 +31,9 @@ jobs:
|
|||||||
-u "${{ env.REGISTRY_USERNAME }}" \
|
-u "${{ env.REGISTRY_USERNAME }}" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@@ -39,7 +42,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: haven-notify
|
context: haven-notify
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.IMAGE_NOTIFY }}:latest
|
${{ env.IMAGE_NOTIFY }}:latest
|
||||||
|
|
||||||
|
@@ -38,8 +38,6 @@ spec:
|
|||||||
port: 8080
|
port: 8080
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/arch: amd64
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
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