From f63af02256f310fb574082408e39c547bf76f4ff Mon Sep 17 00:00:00 2001 From: jerome Date: Fri, 5 May 2023 18:19:53 +0200 Subject: update .gitlab-ci.yml --- .gitlab-ci.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47a17a0..3940d3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,37 +8,16 @@ workflow: - if: '$CI_PIPELINE_SOURCE == "web"' stages: -- build - test - deploy -build-job: - stage: build - tags: - - loufux-docker - image: ansible - script: - - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git - - ansible-galaxy list - artifacts: - paths: - - /root/.ansible/roles/helloworld - -syntax-check-job: - stage: test - tags: - - loufux-docker - image: ansible - script: - - ansible-playbook .ansible/roles/helloworld/tests/test.yml -i .ansible/roles/helloworld/tests/inventory --syntax-check ||true - lint-test-job: stage: test tags: - loufux-docker image: ansible script: - - ansible-lint -p .ansible/roles/helloworld/tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true + - ansible-lint -p tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true artifacts: reports: junit: ansible-lint.xml @@ -50,5 +29,7 @@ deploy-job: - loufux-docker image: ansible script: + - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git + - ansible-galaxy list - ansible-playbook .ansible/roles/helloworld/tests/test.yml -i .ansible/roles/helloworld/tests/inventory -- cgit v1.2.3