Dagweave catalog

Post a message to Discord

discord-postv1.0.1updated 2026-08-022 versions

Post a message to a Discord channel via an incoming-webhook URL read from a Kubernetes Secret.

Install v1.0.1

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml

Facts

Category
Notifications
Tags
curl notifications
Entrypoint
post
Template SHA-256
7dba918fc3a2fa7780c95697f4d559a51df7d835615b3e1ddd8709588457df61
Source
discord-post at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
curlimages/curl8.23.0sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93

Parameters

NameDescriptionDefault
content required The message content to post to the Discord channel. none
webhook-secret-key Key within the Secret that holds the webhook URL. url
webhook-secret-name Name of the Kubernetes Secret in the run namespace holding the Discord webhook URL. discord-webhook

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: discord-post
  labels:
    dagweave.io/catalog-item: discord-post
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.1"
    dagweave.io/catalog-category: "Notifications"
spec:
  entrypoint: post
  templates:
    - name: post
      inputs:
        parameters:
          # The message content to post to the Discord channel.
          - name: content
          # Name/key of the Kubernetes Secret in the run namespace holding the Discord
          # webhook URL. Defaults let a user leave them blank in the Inspector.
          - name: webhook-secret-name
            default: discord-webhook
          - name: webhook-secret-key
            default: url
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # curlimages/curl:8.23.0
        image: curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93
        command: [sh, -c]
        # Values are passed as env vars (below), never interpolated into the shell,
        # so content containing quotes or shell metacharacters is safe. Discord's
        # Execute Webhook endpoint accepts application/x-www-form-urlencoded, and
        # --data-urlencode escapes the value, so no jq / JSON assembly is needed.
        args:
          - |
            set -eu
            curl -sSf -X POST "$WEBHOOK_URL" \
              --data-urlencode "content=${CONTENT}"
        env:
          - name: CONTENT
            value: "{{inputs.parameters.content}}"
          - name: WEBHOOK_URL
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.webhook-secret-name}}"
                key: "{{inputs.parameters.webhook-secret-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.1 latest 2026-08-02

    Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml

    version document, template.yaml

  2. 1.0.0 2026-07-16

    Initial release.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/discord-post \
  -p content=...

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: discord-post-
spec:
  workflowTemplateRef:
    name: discord-post
  arguments:
    parameters:
      - name: content
        value: "..."

As a step of a larger workflow

steps:
  - - name: discord-post
      templateRef:
        name: discord-post
        template: post