Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netdata_server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSI Ansible
netdata_server
Commits
a5775a9d
Commit
a5775a9d
authored
Jul 2, 2022
by
Adrian K.
Browse files
Options
Downloads
Patches
Plain Diff
Add linting CI
parent
9dbce5db
No related branches found
No related tags found
1 merge request
!2
Add ansible-lint and fix all warnings and errors
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-8
6 additions, 8 deletions
.gitlab-ci.yml
with
6 additions
and
8 deletions
.gitlab-ci.yml
+
6
−
8
View file @
a5775a9d
---
---
stages
:
stages
:
-
linting
-
linting
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
cache
:
paths
:
paths
:
-
.cache
-
.cache
ansible-lint
:
ansible-lint
:
stage
:
linting
stage
:
linting
image
:
registry.gitlab.com/pipeline-components/ansible-lint:latest
image
:
before_script
:
name
:
registry.gitlab.fachschaften.org/fsi-ansible/ci-docker-image:latest
-
pip3 install yamllint
entrypoint
:
[
"
"
]
script
:
script
:
-
ansible-lint
.
-
ansible-lint
-v --offline
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment