Merge pull request '.drone.yml updates' (#11) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
This commit is contained in:
commit
db978752f5
19
.drone.yml
19
.drone.yml
@ -20,43 +20,46 @@ steps:
|
|||||||
- name: "ansible_environment_verify"
|
- name: "ansible_environment_verify"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
|
||||||
- git log -1
|
- git log -1
|
||||||
- ansible --version
|
- ansible --version
|
||||||
- ansible-lint --version
|
- ansible-lint --version
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
exclude:
|
||||||
|
- main
|
||||||
event: [push]
|
event: [push]
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_galaxy_requirements"
|
- name: "ansible_galaxy_requirements"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
- ansible-galaxy install -r requirements.yml
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
exclude:
|
||||||
|
- main
|
||||||
event: [push]
|
event: [push]
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_lint"
|
- name: "ansible_lint"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint --offline $DRONE_WORKSPACE
|
- ansible-lint --offline
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
exclude:
|
||||||
|
- main
|
||||||
event: [push]
|
event: [push]
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_playbook_execution"
|
- name: "ansible_playbook_execution"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -v $ANSIBLE_INVENTORY $DRONE_WORKSPACE/$ANSIBLE_PLAYBOOK
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
exclude:
|
||||||
|
- main
|
||||||
event: [push]
|
event: [push]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user