Compare commits
No commits in common. "af94db2aa8e7ed6c4f0659e86f64bb3181934af4" and "a80dad2bdc568ab92abaa4d78394dd51b715a51a" have entirely different histories.
af94db2aa8
...
a80dad2bdc
1 changed files with 23 additions and 30 deletions
53
.drone.yml
53
.drone.yml
|
|
@ -7,19 +7,19 @@ trigger:
|
||||||
- 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
|
||||||
# username:
|
username:
|
||||||
# from_secret: drone_ansible_user
|
from_secret: drone_ansible_user
|
||||||
# key:
|
key:
|
||||||
# from_secret: drone_ansible_ssh_private_key
|
from_secret: drone_ansible_ssh_private_key
|
||||||
# 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
|
||||||
|
|
@ -63,28 +63,21 @@ steps:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
- name: webhook-pr
|
# - name: webhook-pr
|
||||||
image: plugins/webhook
|
# image: plugins/webhook
|
||||||
settings:
|
# settings:
|
||||||
username:
|
# username:
|
||||||
from_secret: mattermost_username
|
# from_secret: mattermost_username
|
||||||
password:
|
# password:
|
||||||
from_secret: mattermost_password
|
# from_secret: mattermost_password
|
||||||
urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
# urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
||||||
content_type: application/json
|
# content_type: application/json
|
||||||
template: |
|
# template: |
|
||||||
`${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
|
||||||
# {
|
# {
|
||||||
# "owner": "$DRONE_REPO_OWNER",
|
# "owner": "$DRONE_REPO_OWNER",
|
||||||
# "repo": "$DRONE_REPO_NAME",
|
# "repo": "$DRONE_REPO_NAME",
|
||||||
# "status": "$DRONE_BUILD_STATUS"
|
# "status": "$DRONE_BUILD_STATUS"
|
||||||
# }
|
# }
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- failure
|
|
||||||
- success
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: Apply Playbook
|
- name: Apply Playbook
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue