Skip to content

Commit

Permalink
Merge pull request #16 from N3aar/fix/watchtower-notification
Browse files Browse the repository at this point in the history
fix: watchtower notification
  • Loading branch information
N3aar authored Jun 1, 2024
2 parents 03b22bb + a51764a commit 2a1de37
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,8 @@ services:
restart: always
container_name: eery-watchtower
environment:
WATCHTOWER_NOTIFICATION_REPORT: "true"
WATCHTOWER_NOTIFICATION_URL: >
discord://${DEPLOY_WEBHOOK_TOKEN}@${DEPLOY_WEBHOOK_ID}
WATCHTOWER_NOTIFICATION_TEMPLATE: |
{{- if .Report -}}
{{- with .Report -}}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
{{- range .Updated}}
- {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
{{- end -}}
{{- range .Fresh}}
- {{.Name}} ({{.ImageName}}): {{.State}}
{{- end -}}
{{- range .Skipped}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- range .Failed}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
{{- end -}}
{{- end -}}
{{- else -}}
{{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
{{- end -}}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 60 --cleanup --label-enable
Expand Down

0 comments on commit 2a1de37

Please sign in to comment.