0.1.12-DEV-20191108-093644
-------------------------- * MODIFY: - modifying .gitlab-ci.yml a bit to see if we cant clean it up and make it work a little better
This commit is contained in:
parent
82881055a0
commit
6b81563739
@ -20,27 +20,20 @@ variables:
|
|||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- check_versions
|
- check_and_lint
|
||||||
- lint_playbook
|
|
||||||
- test_deploy
|
- test_deploy
|
||||||
|
|
||||||
|
|
||||||
### BEGIN TEMPLATES ###
|
### BEGIN TEMPLATES ###
|
||||||
.tags_template: &tags_template
|
.header_template: &header
|
||||||
tags:
|
tags:
|
||||||
- zen-ci-deb-workstation
|
- zen-ci-deb-workstation
|
||||||
|
|
||||||
|
|
||||||
.zen_ci_deb_template: &zen_ci_deb_template
|
|
||||||
variables:
|
|
||||||
DOCKER_IMG_TAG: "latest"
|
|
||||||
|
|
||||||
|
|
||||||
.check_version_template: &check_version_template
|
|
||||||
<<: *tags_template
|
|
||||||
stage: check_versions
|
|
||||||
only:
|
only:
|
||||||
- development
|
- development
|
||||||
|
|
||||||
|
|
||||||
|
.check_versions_template: &check_vers
|
||||||
|
stage: check_and_lint
|
||||||
script:
|
script:
|
||||||
- /bin/hostname
|
- /bin/hostname
|
||||||
- "cd ${CI_PROJECT_DIR} && git log -1"
|
- "cd ${CI_PROJECT_DIR} && git log -1"
|
||||||
@ -48,20 +41,14 @@ stages:
|
|||||||
- "ansible-lint --version"
|
- "ansible-lint --version"
|
||||||
|
|
||||||
|
|
||||||
.lint_playbook_template: &lint_playbook_template
|
.lint_play_template: &lint_play
|
||||||
<<: *tags_template
|
stage: check_and_lint
|
||||||
stage: lint_playbook
|
|
||||||
only:
|
|
||||||
- development
|
|
||||||
script:
|
script:
|
||||||
- "ansible-lint -v ${ANSIBLE_ROLE_PATH}"
|
- "ansible-lint -v ${ANSIBLE_ROLE_PATH}"
|
||||||
|
|
||||||
|
|
||||||
.test_deploy_template: &test_deploy_template
|
.test_deploy_template: &test_deploy
|
||||||
<<: *tags_template
|
|
||||||
stage: test_deploy
|
stage: test_deploy
|
||||||
only:
|
|
||||||
- development
|
|
||||||
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
|
||||||
@ -72,17 +59,17 @@ stages:
|
|||||||
|
|
||||||
|
|
||||||
### BEGIN JOBS ###
|
### BEGIN JOBS ###
|
||||||
Check Versioning Info:
|
Version Checks:
|
||||||
<<: *zen_ci_deb_template
|
<<: *header
|
||||||
<<: *check_version_template
|
<<: *check_vers
|
||||||
|
|
||||||
|
|
||||||
Lint Playbook:
|
Lint Play:
|
||||||
<<: *zen_ci_deb_template
|
<<: *header
|
||||||
<<: *lint_playbook_template
|
<<: *lint_play
|
||||||
|
|
||||||
|
|
||||||
Test Deploy:
|
Test Deploy:
|
||||||
<<: *zen_ci_deb_template
|
<<: *header
|
||||||
<<: *test_deploy_template
|
<<: *test_deploy
|
||||||
### END JOBS ###
|
### END JOBS ###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user