Sign inSign up

relaysh/stdlib-step-jq

By relaysh

•Updated over 4 years ago

Image
0

5M+

relaysh/stdlib-step-jq repository overview

⁠stdlib-step-jq

This step applies a jq filter to process JSON data.

⁠Specification

This step expects the following fields in the spec section of a workflow step definition that uses it:

SettingData typeDescriptionDefaultRequired
inputAnyThe input data to provide to jqNoneYes
rawBooleanWhether to output the result as a raw string (-r flag)falseNo
argsObjectArguments to pass to the jq filter as predefined variables, eg something: barNoneNo
filterStringThe jq filter to run, eg 'map(select(.foo != $something ))'NoneYes

⁠Usage

step:
  name: grab-something
  image: relaysh/stdlib-step-jq
  spec:
    input:
    - foo: "bar"
    - foo: "baz"
    - foo: "quux"
    args:
      something: "bar"
    filter: "map(select(.foo != $something))"

Tag summary

Content type

Image

Digest

Size

50.5 MB

Last updated

over 4 years ago

docker pull relaysh/stdlib-step-jq