Commit cb034503 authored by nimrod's avatar nimrod
Browse files

Don't lint the local .gitlab-ci.yml.

The linter can't handle it without a project, but it requires setting a
token and I'm fed up with it. If it's not useful as a git hook before
pushing, there's no point in running it in the CI (the CI wouldn't work
if the file is invalid).
parent 94b947f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ lint templates:
  script:
    # yamllint disable rule:line-length
    - |
      for template in .gitlab-ci.yml templates/*.yml
      for template in templates/*.yml
      do
        echo "Checking $template" >&2
        gitlab-ci-linter --server "$CI_SERVER_URL" --filename "$template" || EXITCODE=1
+0 −8
Original line number Diff line number Diff line
@@ -27,11 +27,3 @@ repos:
    rev: 0.5.3
    hooks:
      - id: mdformat

  - repo: https://gitlab.com/devopshq/gitlab-ci-linter
    rev: v1.0.3
    hooks:
      - id: gitlab-ci-linter
        args:
          - "--server"
          - https://git.shore.co.il