pipelines-as-code icon indicating copy to clipboard operation
pipelines-as-code copied to clipboard

Let a user specify a "remote" file for CEL

Open chmouel opened this issue 3 years ago • 0 comments

Instead of having to specify the full CEL expression into the annotations (which doesn't scale) we could have a syntax that would reference a remote reference to a file containing the full CEL.

This would allow to write and share long CEL filtering across pipelirun or repository.

example:

 pipelinesascode.tekton.dev/on-cel-file: .tekton/file.cel # resolve .tekton/file.cel at the same revision time where the event is triggered.
 pipelinesascode.tekton.dev/on-cel-file: https://raw.github.com/foo/bar/.tekton/file.cel # http get of the file

chmouel avatar Dec 05 '22 12:12 chmouel