title: gitlab-ci.yml jobs:build-production config key may not be used with `rules`: only
body: <p>I am having a syntax error when I test my gitlab-ci.yml in CI Lint.  Can someone suggest a solution to this problem?</p>
  <pre><code>build-production:
    stage: build
    only:
      - master
    image:
      name: gcr.io/kaniko-project/executor:debug
      entrypoint: [&quot;&quot;]
    script:
      - mkdir -p /kaniko/.docker
      - echo &quot;{\&quot;auths\&quot;:{\&quot;$CI_REGISTRY\&quot;:{\&quot;username\&quot;:\&quot;$CI_REGISTRY_USER\&quot;,\&quot;password\&quot;:\&quot;$CI_REGISTRY_PASSWORD\&quot;}}}&quot; &gt; /kaniko/.docker/config.json
      - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
    rules:
      - if: $CI_COMMIT_TAG
  </code></pre>
  <pre><code>Status: syntax is incorrect 
  
  jobs:build-production config key may not be used with `rules`: only
  </code></pre>