mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-25 06:17:50 +00:00
5a3e5f630f
- Initially all tags were mapped to categories in Hub, for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml, so whenever a new tag was added in a task it was mapped to a category called `others`. Hence before every release we had to manually map these new tags to some category, hence after the discussion in Catalog and Hub WG, a proposal was created for adding a category as an annotation. - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352 Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com> |
||
---|---|---|
.. | ||
README.md | ||
send-to-microsoft-teams.yaml |
Post a message to a Microsoft Teams Channel
These tasks post a simple message to a Microsoft Teams Channel.
send-to-microsoft-teams
This task uses the Incoming Webhook functionality of Microsoft Teams. Create this webhook as described here.
Install the Task and create a secret
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/send-to-microsoft-teams/0.1/send-to-microsoft-teams.yaml
Create a secret that has the webhook URL in it.
Example of the secret:
kind: Secret
apiVersion: v1
metadata:
name: microsoft-teams-webhook-url-secret
stringData:
url: {incoming webhook url over here}
Parameters
-
webhook-url-secret: The name of the Secret for the incoming webhook URL.
-
webhook-url-secret-key: The key within the secret for the URL.
-
message: Plain text message to be posted in the chat.
Usage
This TaskRun runs the Task to post a message to the the teams channel.
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: run-send-to-microsoft-teams
spec:
params:
- name: webhook-url-secret
value: microsoft-teams-webhook-url-secret
- name: webhook-url-secret-key
value: url
- name: message
value: "Hello from Tekton!"
taskRef:
name: send-to-microsoft-teams