Compare commits

...

3 commits

Author SHA1 Message Date
af94db2aa8 Merge pull request 'rulrich-patch-1' (#3) from rulrich-patch-1 into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #3
2024-03-12 09:45:16 +01:00
e65fbd506d .drone.yml aktualisiert
Some checks failed
continuous-integration/drone/pr Build is failing
2024-03-12 09:42:18 +01:00
9057689ab0 .drone.yml aktualisiert
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2024-03-12 09:40:08 +01:00

View file

@ -7,19 +7,19 @@ trigger:
- main
steps:
- name: check SSH
image: appleboy/drone-ssh
settings:
host:
- test.band-on.com
username:
from_secret: drone_ansible_user
key:
from_secret: drone_ansible_ssh_private_key
port: 22
command_timeout: 2m
script:
- echo "Hello World"
# - name: check SSH
# image: appleboy/drone-ssh
# settings:
# host:
# - test.band-on.com
# username:
# from_secret: drone_ansible_user
# key:
# from_secret: drone_ansible_ssh_private_key
# port: 22
# command_timeout: 2m
# script:
# - echo "Hello World"
- name: Syntax Check
image: plugins/ansible:3
@ -63,21 +63,28 @@ steps:
event:
- pull_request
# - name: webhook-pr
# 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: |
- name: webhook-pr
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: |
`${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
# {
# "owner": "$DRONE_REPO_OWNER",
# "repo": "$DRONE_REPO_NAME",
# "status": "$DRONE_BUILD_STATUS"
# }
when:
status:
- failure
- success
event:
- pull_request
- name: Apply Playbook
image: plugins/ansible