Sign inSign up

vorteil/googlemsg

By vorteil

Updated about 5 years ago

Image
0

2.1K

vorteil/googlemsg repository overview

GoogleMessage

Writes a google message to a webhook URL.

Direktiv

An example workflow of using the container on Direktiv.

id: post-to-google
functions:
- id: post
  image: vorteil/googlemsg:v2
description: "Send a message to a google chat"
states:
- id: postToGoogle
  type: action
  action:
    function: post
    input: jq(.)

Input

The input needed to run the above workflow properly is the following:

input:
  message: "This message will be posted to a google chat"
  url: "GOOGLE_CHAT_WEBHOOK_URL"

Output

If the action is successful, the google chat message should appear in the appropriate channel it was sent to.

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.googlechat.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

2.3 MB

Last updated

about 5 years ago

docker pull vorteil/googlemsg