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/**/*"