This commit is contained in:
parent
1f7d91c0bd
commit
0c0c0d2d78
1 changed files with 29 additions and 3 deletions
32
.drone.yml
32
.drone.yml
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue