Skip to content

Commit 0b40aec

Browse files
authored
Merge pull request #278 from dafyddj/ci/yamllint
ci: ignore `yamllint rule:line-length` for Docker images
2 parents 044af7d + a82b2ed commit 0b40aec

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
stage_release: &stage_release 'release'
1414
stage_test: &stage_test 'test'
1515
# `image`
16+
# yamllint disable rule:line-length
1617
image_commitlint: &image_commitlint 'techneg/ci-commitlint:v1.1.76'
1718
image_dindruby: &image_dindruby 'techneg/ci-docker-python-ruby:v2.2.45'
1819
image_dindrubybionic: &image_dindrubybionic 'techneg/ci-docker-python-ruby:v2.2.45'
@@ -22,6 +23,7 @@
2223
# `services`
2324
services_docker_dind: &services_docker_dind
2425
- 'docker:dind'
26+
# yamllint enable rule:line-length
2527
# `variables`
2628
# https://forum.gitlab.com/t/gitlab-com-ci-caching-rubygems/5627/3
2729
# https://bundler.io/v1.16/bundle_config.html

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ci:
1515
autoupdate_schedule: quarterly
1616
skip: []
1717
submodules: false
18-
default_stages: [commit]
18+
default_stages: [pre-commit]
1919
repos:
2020
- repo: https://github.com/dafyddj/commitlint-pre-commit-hook
2121
rev: v2.3.0
@@ -98,3 +98,9 @@ repos:
9898
hooks:
9999
- id: renovate-config-validator
100100
name: Check Renovate config with renovate-config-validator
101+
- repo: https://github.com/python-jsonschema/check-jsonschema
102+
rev: 0.33.0
103+
hooks:
104+
- id: check-gitlab-ci
105+
name: Check GitLab CI config with check-jsonschema
106+
args: ["--verbose"]

0 commit comments

Comments
 (0)