Sign inSign up

fourdollars/mattermost-notification-resource

By fourdollars

•Updated 6 months ago

Image
0

7.9K

fourdollars/mattermost-notification-resource repository overview

GitHub: fourdollars/mattermost-notification-resource License: MIT Bash Docker Docker Pulls

⁠mattermost-notification-resource

concourse-ci⁠'s mattermost-notification-resource https://docs.mattermost.com/developer/webhooks-incoming.html⁠

⁠Config

⁠Resource Type
resource_types:
- name: resource-mattermost-notification
  type: registry-image
  source:
    repository: fourdollars/mattermost-notification-resource
    tag: latest

or

resource_types:
- name: resource-mattermost-notification
  type: registry-image
  source:
    repository: ghcr.io/fourdollars/mattermost-notification-resource
    tag: latest
⁠Resource
  • webhook: required
  • link: optional, provide the link back to the Concourse CI.
resources:
- name: notification
  type: resource-mattermost-notification
  icon: bell
  check_every: never
  source:
    webhook: http://{your-mattermost-site}/hooks/xxx-generatedkey-xxx
    link: true
⁠Example
  • message: required if path is not provided.
  • path: required if message is not provided.
  • link: optional, provide the link back to the Concourse CI.
jobs:
- name: hello-world
  plan:
  - task: send-message
    config:
      platform: linux
      image_resource:
        type: registry-image
        source:
          repository: busybox
      outputs:
        - name: output
      run:
        path: sh
        args:
        - -exc
        - |
          echo "Hello World" > output/message.log
  - put: notification
    inputs: [output]
    params:
      path: output
  - put: notification
    inputs: detect
    params:
      link: false
      message: "Hi, here."

Tag summary

Content type

Image

Digest

sha256:1b02d0910…

Size

10.2 MB

Last updated

6 months ago

docker pull fourdollars/mattermost-notification-resource