Skip to content
Snippets Groups Projects
Commit 3092f4db authored by Thomas Schneider's avatar Thomas Schneider
Browse files

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

This also enables GitLab-parseable ansible-lint output.
parent ac305eeb
No related branches found
No related tags found
1 merge request!10Update CI to reasonable versions
Pipeline #5093 failed
--- ---
image: registry.git.fsmpi.rwth-aachen.de/infra/ci-containers/fsmpi-ansible:buster image: alpine:3.18
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
before_script: before_script:
- apk --no-cache add ansible ansible-lint yamllint ripgrep black
- export LANG=en_US.UTF-8 - export LANG=en_US.UTF-8
- chmod o-w . - chmod o-w .
- apt-get -qq update && apt-get -qq install -y ansible-lint ripgrep
- ansible --version - ansible --version
- ansible-lint --version - ansible-lint --version
- yamllint --version - yamllint --version
...@@ -19,7 +19,12 @@ stages: ...@@ -19,7 +19,12 @@ stages:
test: test:
stage: test stage: test
script: script:
- >-
ansible-lint
--format codeclimate
> codeclimate.json
- yamllint . - yamllint .
- ansible-lint ./*/
# yamllint disable-line rule:line-length
- "! rg --fixed-strings 'passwordstore' ./*/templates" - "! rg --fixed-strings 'passwordstore' ./*/templates"
artifacts:
reports:
codequality: codeclimate.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment