1
0
Fork 0
salty-dog/rules/gitlab-ci.yml

61 lines
1.2 KiB
YAML
Raw Normal View History

name: salty-dog-gitlab-ci
2019-06-16 04:08:12 +00:00
rules:
- name: gitlab-stages
desc: should specify stages
level: info
tags:
- gitlab
- optional
check:
type: object
required: [stages]
properties:
stages:
type: array
items:
type: string
- name: gitlab-job-template
desc: template jobs should set the stage
level: info
tags:
- gitlab
- optional
check:
type: object
patternProperties:
"\\..+":
type: object
required: [stage]
properties:
stage:
type: string
- name: gitlab-job-script
desc: jobs must have a script
level: info
tags:
- gitlab
- important
check:
type: object
patternProperties:
"^(?!stages$|\\.)":
type: object
required: [script]
properties:
after_script:
type: array
items:
type: string
before_script:
type: array
items:
type: string
script:
type: array
items:
type: string