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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zeit.deploynotify-1.0.3.tar.gz
.
File metadata
- Download URL: zeit.deploynotify-1.0.3.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cacc653c2a83ef7c17bd7767125a6d9725a989a9480d35a30af86e93bb600e |
|
MD5 | 5473fc55d5deb65e6959d2310c473ac4 |
|
BLAKE2b-256 | fbf80c4057c9937f92084e6641950bb697a6deecd0cd533b6e8e423d41219149 |
File details
Details for the file zeit.deploynotify-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: zeit.deploynotify-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1a91d03ec151344a264dce4bc3183875703d24c3b3246b7ff12bab5e403632 |
|
MD5 | 87d8cde02bef48dfb60101060e142b31 |
|
BLAKE2b-256 | 697f210e6a28710987eb564127f8a1ee29bc7d8671f4c425bb6a99569f380961 |