https://github.com/fourdollars/mattermost-notification-resource
https://github.com/fourdollars/mattermost-notification-resource
concourse-ci-resource mattermost
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fourdollars/mattermost-notification-resource
- Owner: fourdollars
- License: mit
- Created: 2021-01-26T05:23:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T05:01:32.000Z (9 months ago)
- Last Synced: 2024-08-17T03:47:46.282Z (9 months ago)
- Topics: concourse-ci-resource, mattermost
- Language: Shell
- Homepage: https://fourdollars.github.io/
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/fourdollars/mattermost-notification-resource/) [](https://opensource.org/licenses/MIT) [](https://www.gnu.org/software/bash/)  [](https://hub.docker.com/r/fourdollars/mattermost-notification-resource/)
# mattermost-notification-resource
[concourse-ci](https://concourse-ci.org/)'s mattermost-notification-resource
https://docs.mattermost.com/developer/webhooks-incoming.html## Config
### Resource Type
```yaml
resource_types:
- name: resource-mattermost-notification
type: registry-image
source:
repository: fourdollars/mattermost-notification-resource
tag: latest
```or
```yaml
resource_types:
- name: resource-mattermost-notification
type: registry-image
source:
repository: ghcr.io/fourdollars/mattermost-notification-resource
tag: latest
```### Resource
* webhook: **required**
* badge: optional, provide the badge for the job of the Concourse CI.
* link: optional, provide the link back to the Concourse CI.```yaml
resources:
- name: notification
type: resource-mattermost-notification
icon: bell
check_every: never
source:
webhook: http://{your-mattermost-site}/hooks/xxx-generatedkey-xxx
badge: true
link: true
```### Example
* message: **required** if path is not provided.
* path: **required** if message is not provided.
* badge: optional, provide the badge for the job of the Concourse CI.
* link: optional, provide the link back to the Concourse CI.```yaml
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:
badge: false
link: false
message: "Hi, here."
```