From d96715da2d9ab75a6aa394ae3cd48999bca7df58 Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Tue, 13 Jun 2023 13:42:58 +0200
Subject: [PATCH] CI: Switch to plain Alpine image with modern ansible-lint

This also enables GitLab-parseable ansible-lint output.
---
 .gitlab-ci.yml | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ad974b..3b670ed 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,14 +1,14 @@
 ---
 
-image: registry.git.fsmpi.rwth-aachen.de/infra/ci-containers/fsmpi-ansible:buster
+image: alpine:3.17
 
 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
-- 
GitLab