From f1ba921a165bda976f2252e90737d0d247fe4148 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Sun, 21 Sep 2025 18:47:56 +0200 Subject: [PATCH] ci(gitlab-ci): create 'codestyle' job for GitLab CI/CD and local usage Signed-off-by: Adrian DC --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1094aa9a..216e91a1e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,25 @@ image: python:3.13 stages: + - prepare - build - deploy - promote +lint: + stage: prepare + script: + # Configurations + - set +x + # Run lint workflows + - | + grep 'run: ' ./.github/workflows/lint.yml | sed 's/.* run: //g' | while read -r command; do + echo ' ' + echo "- ${command}" + echo ' ' + sh -c "${command}" || exit 1 + done + build-images: stage: build image: @@ -27,7 +42,7 @@ build-images: deploy-images: stage: deploy - image: + image: name: mplatform/manifest-tool:alpine-v2.0.4@sha256:38b399ff66f9df247af59facceb7b60e2cd01c2d649aae318da7587efb4bbf87 entrypoint: [""] script: