0.1.10-DEV-20191107-142055
-------------------------- * CI: - added new verify_deployment stage to check ssl deployment and nginx configs
This commit is contained in:
parent
bc397f502c
commit
39e9a51b81
@ -23,6 +23,7 @@ stages:
|
|||||||
- check_versions
|
- check_versions
|
||||||
- lint_playbook
|
- lint_playbook
|
||||||
- test_deploy
|
- test_deploy
|
||||||
|
- verify_deployment
|
||||||
|
|
||||||
|
|
||||||
### BEGIN TEMPLATES ###
|
### BEGIN TEMPLATES ###
|
||||||
@ -65,6 +66,17 @@ stages:
|
|||||||
script:
|
script:
|
||||||
- cp -av ${ANSIBLE_ROLE_PATH} /etc/ansible/roles/${ANSIBLE_ROLE}
|
- cp -av ${ANSIBLE_ROLE_PATH} /etc/ansible/roles/${ANSIBLE_ROLE}
|
||||||
- ansible-playbook -v --connection=local ${ANSIBLE_EXTRA_VARS} tests/test.yml
|
- 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 ###
|
### END TEMPLATES ###
|
||||||
|
|
||||||
|
|
||||||
@ -82,4 +94,9 @@ Lint Playbook:
|
|||||||
Test Deploy:
|
Test Deploy:
|
||||||
<<: *zen_ci_deb_template
|
<<: *zen_ci_deb_template
|
||||||
<<: *test_deploy_template
|
<<: *test_deploy_template
|
||||||
|
|
||||||
|
|
||||||
|
Verify Deployment:
|
||||||
|
<<: *zen_ci_deb_template
|
||||||
|
<<: *verify_nginx_deployment
|
||||||
### END JOBS ###
|
### END JOBS ###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user