Merge pull request '.drone.yml aktualisiert' (#9) from rulrich-patch-1 into main
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #9
This commit is contained in:
rulrich 2024-03-13 08:50:47 +01:00
commit 8a684ab1aa

View file

@ -4,14 +4,15 @@ type: docker
trigger: trigger:
branch: branch:
- main - main
steps: steps:
- name: check SSH - name: check SSH
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: host:
- test.band-on.com - test.band-on.com
- band-on.com
username: username:
from_secret: drone_ansible_user from_secret: drone_ansible_user
key: key:
@ -19,7 +20,7 @@ steps:
port: 22 port: 22
command_timeout: 2m command_timeout: 2m
script: script:
- echo "Hello World" - echo "Hello World"
- name: Syntax Check - name: Syntax Check
image: plugins/ansible:3 image: plugins/ansible:3
@ -28,8 +29,6 @@ steps:
playbook: playbook.yml playbook: playbook.yml
inventory: hosts inventory: hosts
ssh_extra_args: "-o StrictHostKeyChecking=no" ssh_extra_args: "-o StrictHostKeyChecking=no"
# requirements: requirements.txt
# galaxy: requirements.yml
syntax_check: true syntax_check: true
when: when:
event: event:
@ -42,6 +41,8 @@ steps:
when: when:
event: event:
- pull_request - pull_request
status:
- success
- name: Show Diff and Check - name: Show Diff and Check
image: plugins/ansible:3 image: plugins/ansible:3
@ -57,11 +58,11 @@ steps:
diff: true diff: true
check: true check: true
ssh_extra_args: "-o StrictHostKeyChecking=no" ssh_extra_args: "-o StrictHostKeyChecking=no"
# requirements: requirements.txt
# galaxy: requirements.yml
when: when:
event: event:
- pull_request - pull_request
status:
- success
- name: webhook-pr - name: webhook-pr
image: plugins/webhook image: plugins/webhook
@ -87,7 +88,7 @@ steps:
- failure - failure
- success - success
event: event:
- pull_request - pull_request
- name: Apply Playbook - name: Apply Playbook
image: plugins/ansible:3 image: plugins/ansible:3