0.1.10-DEV-20191107-142055

--------------------------
    * CI:
      - added new verify_deployment stage to check ssl deployment and nginx configs
This commit is contained in:
Chris Hammer 2019-11-07 14:22:21 -05:00
parent bc397f502c
commit 39e9a51b81

View File

@ -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 ###