diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 25 |
1 files 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 |
