Skip to content
Snippets Groups Projects

CI: Switch to plain Alpine image with modern ansible-lint

Merged Thomas Schneider requested to merge th/ansible-lint-gitlab-ci into master
1 file
+ 9
4
Compare changes
  • Side-by-side
  • Inline
+ 9
4
---
image: registry.git.fsmpi.rwth-aachen.de/infra/ci-containers/fsmpi-ansible:buster
image: alpine:3.18
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apk --no-cache add ansible ansible-lint yamllint ripgrep black
- export LANG=en_US.UTF-8
- chmod o-w .
- apt-get -qq update && apt-get -qq install -y ansible-lint ripgrep
- ansible --version
- ansible-lint --version
- yamllint --version
@@ -19,7 +19,12 @@ stages:
test:
stage: test
script:
- >-
ansible-lint
--format codeclimate
> codeclimate.json
- yamllint .
- ansible-lint ./*/
# yamllint disable-line rule:line-length
- "! rg --fixed-strings 'passwordstore' ./*/templates"
artifacts:
reports:
codequality: codeclimate.json
Loading