-
Notifications
You must be signed in to change notification settings - Fork 0
Module ‐ Dispatch Publish
Stéphane Brunner edited this page Jun 4, 2025
·
6 revisions
Module used to dispatch publishing events.
This module automates the dispatching of publishing events created by tag-publish
to Argo CD repositories. It ensures that updates are propagated efficiently across the repositories managed by Argo CD.
- Event Dispatching: Listens for publishing events and forwards them to the appropriate Argo CD repositories.
-
Integration with
tag-publish
: Works seamlessly with thetag-publish
tool to handle version tagging and publishing workflows.
The configuration for this module should be provided in the DISPATCH_PUBLISH_CONFIG
environment variable as a JSON which lists the destination repositories with:
-
destination_repository
: The repository to dispatch to. -
event_type
: The event type to dispatch. -
legacy
: Whether to transform the content to the legacy format (default:False
). -
version_type
: The version type to dispatch (optional). -
package_type
: The package type to dispatch (optional). -
image_re
: The image regular expression to dispatch (default:.*
).
{
"destinations": [
{
"destination_repository": "repo1",
"event_type": "tag",
"legacy": false,
"version_type": "semver",
"package_type": "docker",
"image_re": ".*"
},
{
"destination_repository": "repo2",
"event_type": "release",
"legacy": true
}
]
}
- Ensure the
DISPATCH_PUBLISH_CONFIG
environment variable is correctly set and points to a valid configuration file.