This commit is contained in:
parent
e2e8648977
commit
ee63cf75f8
17
.drone.yml
17
.drone.yml
@ -20,33 +20,35 @@ steps:
|
||||
- name: "ansible_environment_verify"
|
||||
image: *ansible_image
|
||||
commands:
|
||||
- pwd
|
||||
- git log -1
|
||||
- ansible --version
|
||||
- ansible-lint --version
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
exclude:
|
||||
- main
|
||||
event: [push]
|
||||
|
||||
|
||||
- name: "ansible_galaxy_requirements"
|
||||
image: *ansible_image
|
||||
commands:
|
||||
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
||||
- ansible-galaxy install -r requirements.yml
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
exclude:
|
||||
- main
|
||||
event: [push]
|
||||
|
||||
|
||||
- name: "ansible_lint"
|
||||
image: *ansible_image
|
||||
commands:
|
||||
- ansible-lint --offline $DRONE_WORKSPACE
|
||||
- ansible-lint --offline
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
exclude:
|
||||
- main
|
||||
event: [push]
|
||||
|
||||
|
||||
@ -56,7 +58,8 @@ steps:
|
||||
- ansible-playbook -v $ANSIBLE_INVENTORY $DRONE_WORKSPACE/$ANSIBLE_PLAYBOOK
|
||||
when:
|
||||
branch:
|
||||
- development
|
||||
exclude:
|
||||
- main
|
||||
event: [push]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user