gitlab-ci-training icon indicating copy to clipboard operation
gitlab-ci-training copied to clipboard

CI Lint curl

Open ondrejsika opened this issue 4 years ago • 0 comments

curl --header "Content-Type: application/json" "https://gitlab.example.com/api/v4/ci/lint" --data '{"content": "{ \"image\": \"ruby:2.6\", \"services\": [\"postgres\"], \"before_script\": [\"bundle install\", \"bundle exec rake db:create\"], \"variables\": {\"DB_NAME\": \"postgres\"}, \"types\": [\"test\", \"deploy\", \"notify\"], \"rspec\": { \"script\": \"rake spec\", \"tags\": [\"ruby\", \"postgres\"], \"only\": [\"branches\"]}}"}'

https://docs.gitlab.com/ee/api/lint.html

ondrejsika avatar Jan 25 '21 10:01 ondrejsika