summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2023-05-05 17:32:24 +0200
committerjerome <jerome@xlinfo.fr>2023-05-05 17:32:24 +0200
commit64635903ccd729f492f139a0899529e520c68b80 (patch)
tree3810f306479aecfa224a0eff09ce0fbae517a668 /.gitlab-ci.yml
parentfc21b0a9732c730153d15aea13b392cce2e162c6 (diff)
downloadhelloworld-64635903ccd729f492f139a0899529e520c68b80.tar.gz
helloworld-64635903ccd729f492f139a0899529e520c68b80.zip
update .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml26
1 files changed, 13 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e8e3dbb..57f9fc3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,17 +8,26 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "web"'
stages:
+- build
- test
-- run
- 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
+
syntax-check-job:
stage: test
tags:
- loufux-docker
image: ansible
script:
- - ansible-playbook tests/test.yml -i tests/inventory --syntax-check ||true
+ - ansible-playbook helloworld/tests/test.yml -i helloworld/tests/inventory --syntax-check ||true
lint-test-job:
stage: test
@@ -26,7 +35,7 @@ lint-test-job:
- loufux-docker
image: ansible
script:
- - ansible-lint -p tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
+ - ansible-lint -p helloworld/tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true
artifacts:
reports:
junit: ansible-lint.xml
@@ -38,14 +47,5 @@ run-job:
- loufux-docker
image: ansible
script:
- - ansible-playbook tests/test.yml -i tests/inventory
+ - ansible-playbook helloworld/tests/test.yml -i helloworld/tests/inventory
-deploy-job:
- stage: deploy
- tags:
- - loufux-docker
- image: ansible
- script:
- - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git --roles-path /etc/ansible/roles/
- - ansible-galaxy info helloworld
- - ansible-galaxy list