Merge pull request '.drone.yml aktualisiert' (#11) from rulrich-patch-1 into main
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #11
This commit is contained in:
rulrich 2024-03-13 09:12:27 +01:00
commit 8c511fadaa

View file

@ -21,6 +21,12 @@ steps:
command_timeout: 2m
script:
- echo "Hello World"
when:
event:
- push
- tag
branch:
- main
- name: Syntax Check
image: plugins/ansible:3
@ -33,6 +39,7 @@ steps:
when:
event:
- pull_request
- push
- name: Lint
image: cytopia/ansible-lint
@ -41,6 +48,7 @@ steps:
when:
event:
- pull_request
- push
status:
- success
@ -60,7 +68,7 @@ steps:
ssh_extra_args: "-o StrictHostKeyChecking=no"
when:
event:
- pull_request
- push
status:
- success
@ -84,6 +92,26 @@ steps:
event:
- pull_request
- name: webhook-push-start
image: plugins/webhook
settings:
username:
from_secret: mattermost_username
password:
from_secret: mattermost_password
urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
content_type: application/json
template: |
{
"text": "${DRONE_REPO} build is starting\nBuild: https://drone.ulrich.engineering/rulrich/${DRONE_REPO}/${DRONE_BUILD_NUMBER}"
}
when:
branch:
- main
event:
- push
- tag
- name: Apply Playbook
image: plugins/ansible:3
settings:
@ -96,8 +124,6 @@ steps:
private_key:
from_secret: drone_ansible_ssh_private_key
ssh_extra_args: "-o StrictHostKeyChecking=no"
# requirements: requirements.txt
# galaxy: requirements.yml
diff: true
when:
branch: