From 39e9a51b81f1d8c7bbc95d7df5e7407b35406a90 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 7 Nov 2019 14:22:21 -0500 Subject: [PATCH] 0.1.10-DEV-20191107-142055 -------------------------- * CI: - added new verify_deployment stage to check ssl deployment and nginx configs --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02ff87e..fe39519 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,7 @@ stages: - check_versions - lint_playbook - test_deploy + - verify_deployment ### BEGIN TEMPLATES ### @@ -65,6 +66,17 @@ stages: script: - cp -av ${ANSIBLE_ROLE_PATH} /etc/ansible/roles/${ANSIBLE_ROLE} - ansible-playbook -v --connection=local ${ANSIBLE_EXTRA_VARS} tests/test.yml + + +.verify_nginx_deployment: &verify_nginx_deployment + <<: *tags_template + stage: verify_deployment + only: + - development + script: + - /usr/bin/find /etc/nginx/conf.d + - /usr/bin/find /etc/nginx/ssl | /bin/grep -vi git + - /usr/sbin/nginx -c /etc/nginx/nginx.conf -t ### END TEMPLATES ### @@ -82,4 +94,9 @@ Lint Playbook: Test Deploy: <<: *zen_ci_deb_template <<: *test_deploy_template + + +Verify Deployment: + <<: *zen_ci_deb_template + <<: *verify_nginx_deployment ### END JOBS ###