Skip to content
Snippets Groups Projects
Commit 0f635c43 authored by Erick Hitter's avatar Erick Hitter
Browse files

Test linting for configurations

parent ec5c5404
Branches
No related tags found
1 merge request!23Test linting for configurations
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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment