Skip to main content

No project description provided

Project description

This package collects the mechanics for sending notifications “version x of project y was just deployed to environment z”, for example to set markers in observability systems like Grafana, post a message to a slack channel, transition issues in jira to the corresponding status, etc.

Usage

The package provides a “multi subcommand” CLI interface:

python -m zeit.deploynotify
    --environment=staging --project=example --version=1.2.3 \
    slack --channel=example --emoji=palm_tree

Typically this will be integrated as a Keptn Deployment Task, like this:

apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: deployment-notify
spec:
  refreshInterval: 1h
  secretStoreRef:
    name: baseproject-vault
    kind: SecretStore
  data:
  - secretKey: SLACK_HOOK_TOKEN
    remoteRef:
      key: zon/v1/slack/hackbot
      property: HOOK_TOKEN
---
apiVersion: lifecycle.keptn.sh/v1alpha3
kind: KeptnTaskDefinition
metadata:
  name: notify
spec:
  container:
    name: task
    image: europe-west3-docker.pkg.dev/zeitonline-engineering/docker-zon/deploynotify:1.0.0
    envFrom:
      - secretRef:
          name: deployment-notify
    args:
      - "--environment=staging"
      - "slack"
      - "--channel=example"
      - "--emoji=palm_tree"

Changelog

1.5.0 (2024-08-07)

Changes

  • issues: Support multiple issue prefixes (issues)

  • jira: Select jira status by name insead of id (jira)

1.4.1 (2024-07-30)

Changes

  • ZO-5636: Set all hny dataset as default (ZO-5636)

1.4.0 (2024-07-30)

Changes

  • ZO-5636: Support honeycomb environments marker (ZO-5636)

1.3.0 (2024-02-22)

Changes

  • Update to keptn-0.10 context API (keptn)

1.2.3 (2024-01-17)

Changes

  • Fix jira status change (jira)

1.2.2 (2024-01-16)

Changes

  • Don’t set jira status if status is already ‘more done’ (jira)

1.2.1 (2024-01-11)

Changes

  • Detect empty postdeploy properly (postdeploy)

1.1.1 (2024-01-08)

Changes

  • Quote changelog text correctly for slack (changelog)

1.1.0 (2024-01-08)

Changes

  • ZO-4171: Implement posting the changelog diff to slack (changelog)

1.0.4 (2024-01-08)

Changes

  • postdeploy: Retrieve changelog of the deployed version (postdeploy)

1.0.3 (2023-12-18)

Changes

  • Fix jira changelog parsing (jira)

1.0.2 (2023-12-18)

Changes

  • Fix bugsnag cli parsing (bugsnag)

1.0.1 (2023-12-18)

Changes

  • Allow calling multiple tasks in a single invocation (chain)

1.0.0 (2023-12-13)

Changes

  • Initial release (initial)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zeit.deploynotify-1.5.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

zeit.deploynotify-1.5.0-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file zeit.deploynotify-1.5.0.tar.gz.

File metadata

  • Download URL: zeit.deploynotify-1.5.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for zeit.deploynotify-1.5.0.tar.gz
Algorithm Hash digest
SHA256 3e1db5d681a40ba26935b62e111a4e3995ec99f1858fb1d7733a45528f624b2a
MD5 cb68e6ac03a06b9f27b4080b3f90aa39
BLAKE2b-256 7a21fd2cd4e3483f5150d6ea948d3dfddd6d8c6acea73158066f78fc0a3f34b5

See more details on using hashes here.

File details

Details for the file zeit.deploynotify-1.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zeit.deploynotify-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f548383ee7748692f6715e46b8a86e77d274626921f69e0443e68658bbd44444
MD5 4d7e0ae8b4422f430d00b7d098560783
BLAKE2b-256 983aaa332a67469d5cb5cb864a159b75eef17fbed32ff6ca58a13c49478004f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page