0.1.8-DEV-20200419-232748
------------------------- * MODIFY: - modified CI yaml to limit builds only to master
This commit is contained in:
parent
f983cae4dd
commit
38b873a0e5
@ -38,6 +38,8 @@ stages:
|
|||||||
.check_versions_template: &check_vers
|
.check_versions_template: &check_vers
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: check_and_lint
|
stage: check_and_lint
|
||||||
|
only:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- /usr/bin/hostname
|
- /usr/bin/hostname
|
||||||
- "cd ${CI_PROJECT_DIR} && git log -1"
|
- "cd ${CI_PROJECT_DIR} && git log -1"
|
||||||
@ -48,6 +50,8 @@ stages:
|
|||||||
.lint_play_template: &lint_play
|
.lint_play_template: &lint_play
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: check_and_lint
|
stage: check_and_lint
|
||||||
|
only:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||||
- ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml
|
- ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml
|
||||||
@ -56,6 +60,8 @@ stages:
|
|||||||
.test_deploy_template: &test_deploy
|
.test_deploy_template: &test_deploy
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: test_deploy
|
stage: test_deploy
|
||||||
|
only:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||||
- pwd
|
- pwd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user