-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
42 lines (41 loc) · 1.1 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
kind: pipeline
type: docker
name: default
steps:
- name: Update Submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: Test Dotfiles Install
image: ubuntu:22.04
commands:
- apt-get -y update && apt-get install -y git
- chmod +x ./bin/dotfiles
- ./bin/dotfiles
#- name: Trigger Ansible Deployment
#image: plugins/downstream
#settings:
#server:
#from_secret: drone_server
#token:
#from_secret: drone_token
#repositories:
#- dueyfinster/ansible
- name: Slack Notifications
image: plugins/slack
settings:
channel: dev
link_names: true
template: >
{{#failure build.status}}
Broken build of `{{repo.name}}:{{build.branch}}` {{build.author}} with <${DRONE_COMMIT_LINK}|#{{truncate build.commit 8}}> <@neil>
:new: :zombie: {{build.message}}
{{/failure}}
:stopwatch: {{ since build.started}}
:gear: {{build.link}}
environment:
SLACK_WEBHOOK:
from_secret: slack_webhook
when:
status: failure