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