diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..3adb3a0738726d8263c2d52145893366069c9fcf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +before_script: + - | + apt-get update + apt-get -y --no-install-recommends install jq + apt-get clean + rm -rf /var/lib/apt/lists/* + +Lint:plugins:default: + stage: test + image: containers.ethitter.com:443/docker/images/debian:bullseye + script: + - | + jq --null-input --arg yaml "$(<./plugins/default.yml)" '.content=$yaml' \ + | curl "https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true" \ + --header 'Content-Type: application/json' \ + --header 'PRIVATE_TOKEN: $CI_JOB_TOKEN' \ + --data @- \ + | jq --raw-output '.merged_yaml | fromjson'