Skip to content

Compose Deploy (GitHub): enhance webhook handling for registry_package event #4181

Description

@evavica

What problem will this feature address?

Automatically triggering a deployment when a new component image is pushed requires a (potentially external) source code ref.

When triggering a compose deployment via webhook, the ref field must always be present for branch verification.
When working on workloads that live in different repositories and push Docker images to a registry, the branch check requires brittle workarounds (e.g. providing/mirroring the infra repository ref in CICD) to successfully trigger the deployment.

Describe the solution you'd like

Checks for "source code pushed" triggers are not applied to "image pushed" triggers:

  • The registry_package event doesn't have to provide a branch ref (reason: sources of Images consumed do not always live in the same repository)
  • Watch paths wouldn't apply to external repositories
  • Docker image related metadata/checks should be sufficient

Refining both use cases and what needs to be done in which could enhance clarity and reduce configuration overhead.

Describe alternatives you've considered

Use fixed image versions and update the compose file for a release - requires additional manual effort.

Additional context

No response

Will you send a PR to implement it?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions