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
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- echo "Hello World"
|
- echo "Hello World"
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
- name: Syntax Check
|
- name: Syntax Check
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
|
@ -33,6 +39,7 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- push
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
image: cytopia/ansible-lint
|
image: cytopia/ansible-lint
|
||||||
|
|
@ -41,6 +48,7 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- push
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
||||||
|
|
@ -60,7 +68,7 @@ steps:
|
||||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- push
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
||||||
|
|
@ -84,6 +92,26 @@ steps:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- 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
|
- name: Apply Playbook
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
settings:
|
settings:
|
||||||
|
|
@ -96,8 +124,6 @@ steps:
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: drone_ansible_ssh_private_key
|
from_secret: drone_ansible_ssh_private_key
|
||||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
# requirements: requirements.txt
|
|
||||||
# galaxy: requirements.yml
|
|
||||||
diff: true
|
diff: true
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue