Skip to content

Commit

Permalink
chore: update earthfile
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Dec 16, 2024
1 parent 9bcb7e1 commit b64ffe9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ compile-configs:
FROM core+builder-image
COPY (+sources/*) /src
WORKDIR /src/internal/connectors/plugins/public
FOR c IN $(ls -d */ | sed 's#/##')
RUN echo "{\"$c\":" >> raw_configs.json
RUN cat /src/internal/connectors/plugins/public/$c/config.json >> raw_configs.json
RUN echo "}" >> raw_configs.json
END
RUN jq --slurp 'add' raw_configs.json > configs.json
RUN jq -s 'reduce .[] as $item ({}; . * $item)' */config.json > configs.json
SAVE ARTIFACT /src/internal/connectors/plugins/public/configs.json /configs.json

compile:
Expand Down

0 comments on commit b64ffe9

Please sign in to comment.