From af3da06f8d1accf6fb15b4cc0b15ef1b09a67bd6 Mon Sep 17 00:00:00 2001 From: Philipp Kruber Date: Tue, 16 Dec 2025 08:35:00 +0100 Subject: [PATCH 1/2] teste die pipeline --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..eb014e9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +--- +stages: + - build + - lint + - test + - deploy + +before_script: + - ansible --version + - ansible-lint --version + - yamllint --version + - molecule --version + +lint: + script: + echo "test test test" + +# lint: + +# stage: lint +# image: quay.io/ansible/ansible-runner:latest + +# before_script: +# - pip install ansible ansible-lint + +# script: +# - ansible-lint playbooks/ +# rules: +# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' +# - changes: +# - "**/*.yml" +# - "**/*.yaml" +# - "roles/**/*" From 1112c9a340057a78251f36634ce4805fbf944fb5 Mon Sep 17 00:00:00 2001 From: smartika Date: Tue, 16 Dec 2025 08:01:04 +0000 Subject: [PATCH 2/2] Update .gitlab-ci.yml --- .gitlab-ci.yml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb014e9..e0c9d59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,12 @@ ---- stages: - - build - lint - - test - - deploy -before_script: - - ansible --version - - ansible-lint --version - - yamllint --version - - molecule --version - -lint: +yamllint: + stage: lint + image: python:3.12-alpine + before_script: + - pip install --no-cache-dir yamllint script: - echo "test test test" + - yamllint . -# lint: -# stage: lint -# image: quay.io/ansible/ansible-runner:latest - -# before_script: -# - pip install ansible ansible-lint - -# script: -# - ansible-lint playbooks/ -# rules: -# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' -# - changes: -# - "**/*.yml" -# - "**/*.yaml" -# - "roles/**/*"