GithubHelp home page GithubHelp logo

Comments (8)

crazy-max avatar crazy-max commented on August 28, 2024 1

@TUISTERa Yes I've planned to add this through a simple template. Keep you in touch.

from diun.

TUISTERa avatar TUISTERa commented on August 28, 2024 1

from diun.

bigjdunham avatar bigjdunham commented on August 28, 2024 1

Bump for inclusion of this, especially the ability to create custom headers for email and pushover notifications.

from diun.

TUISTERa avatar TUISTERa commented on August 28, 2024

Hello, Do you have any plans for adding this? At least i want to add a "#duin" at the end of the message , for filtering purpose at my telegram notifications...

from diun.

sintaxx avatar sintaxx commented on August 28, 2024

Would this also include the ability to provide a custom name to the bot for example on discord it shows up as DIUN[bot], i'd like to be able to customize the name such as DIUN-Server1name, DIUN-Server2Name so both of my monitored servers can alert the same channel and i can differentiate them.

from diun.

laurentlbm avatar laurentlbm commented on August 28, 2024

It would be very helpful if notifications included a link to the change log of the release. Unfortunately, that info doesn't seem readily available on docker hub, so a custom message with a link to the GitHub/website of the image would be an ok compromise.

from diun.

crazy-max avatar crazy-max commented on August 28, 2024

Working on it for the next release. You will be able to customize the title and body of the message for each notification providers. This will be limited to markdown and html rendering atm. The JSON or ENV output will remain immutable.

from diun.

crazy-max avatar crazy-max commented on August 28, 2024

You can test this feature with crazymax/diun:edge. Documentation for each notifiers can be found here.

Example with mail:

watch:
  workers: 20
  schedule: "0 */6 * * *"
  firstCheckNotif: false

notif:
  mail:
    host: localhost
    port: 25
    ssl: false
    insecureSkipVerify: false
    from: [email protected]
    to: [email protected]
    templateTitle: |
      {{ .Entry.Image }} released
    templateBody: |
      Docker tag {{ if .Entry.Image.HubLink }}[**{{ .Entry.Image }}**]({{ .Entry.Image.HubLink }}){{ else }}**{{ .Entry.Image }}**{{ end }}
      which you subscribed to through {{ .Entry.Provider }} provider has been {{ if (eq .Entry.Status "new") }}newly added{{ else }}updated{{ end }}.
      This image has been {{ if (eq .Entry.Status "new") }}created{{ else }}updated{{ end }} at
      <code>{{ .Entry.Manifest.Created.Format "Jan 02, 2006 15:04:05 UTC" }}</code> with digest <code>{{ .Entry.Manifest.Digest }}</code>
      for <code>{{ .Entry.Manifest.Platform }}</code> platform.

providers:
  docker:
    watchByDefault: true

Documentation about notification template: https://github.com/crazy-max/diun/blob/master/docs/faq.md#notification-template

from diun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.