Skip to content

Emit a repository_dispatch event of type "docker-push:$image" #334

Description

@efasel

It would be awesome if ee-action-buildpack the halfpipe task buildpack would emit a repository_dispatch event of type "docker-push:$image" so that docker trigger also works with CNB.

I think this would be the minimal fix:

diff --git a/renderers/actions/buildpack.go b/renderers/actions/buildpack.go
index 3a3e71be..ae2a4502 100644
--- a/renderers/actions/buildpack.go
+++ b/renderers/actions/buildpack.go
@@ -34,5 +34,5 @@ func (a *Actions) buildpackSteps(task manifest.Buildpack) (steps Steps) {
 		},
 	}
 
-	return Steps{step}
+	return Steps{step, repositoryDispatch(task.Image)}
 }

Use case: two pipelines, one which builds an application image, a second one which deploys the Katee application if the image has changed.

Example:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions