-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrobbit.yml
120 lines (112 loc) · 2.36 KB
/
robbit.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
resource_types:
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
resources:
- name: every-morning
type: time
source:
start: 9:40 AM
stop: 9:45 AM
location: Europe/Dublin
days:
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- name: every-evening
type: time
source:
start: 6:00 PM
stop: 6:30 PM
location: Europe/Dublin
days:
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- name: slack-alert
type: slack-notification
source:
url: {{slack-hook-url}}
- name: github-robbit-repo
type: git
source:
uri: https://github.com/vlad-stoian/robbit.git
branch: master
- name: github-rabbitmq-tile-home-repo
type: git
source:
uri: https://github.com/pivotal-cf/rabbitmq-tile-home
branch: master
private_key: {{github-private-key}}
jobs:
- name: post-retro-items
plan:
- get: every-morning
trigger: true
- get: github-robbit-repo
- task: annoy
config:
platform: linux
image_resource:
type: docker-image
source:
repository: python
tag: alpine
inputs:
- name: github-robbit-repo
run:
path: python
args:
- "github-robbit-repo/src/post-retro-items.py"
- {{postfacto-token}}
- {{retro-id}}
- {{slack-token}}
- {{slack-channel}}
- name: update-channel-topic
plan:
- get: every-morning
trigger: true
- get: github-robbit-repo
- task: annoy
config:
platform: linux
image_resource:
type: docker-image
source:
repository: python
tag: alpine
inputs:
- name: github-robbit-repo
run:
path: python
args:
- "github-robbit-repo/src/update-channel-topic.py"
- {{slack-token}}
- {{slack-channel}}
- name: clear-channel-topic
plan:
- get: every-evening
trigger: true
- get: github-robbit-repo
- task: annoy
config:
platform: linux
image_resource:
type: docker-image
source:
repository: python
tag: alpine
inputs:
- name: github-robbit-repo
run:
path: python
args:
- "github-robbit-repo/src/clear-channel-topic.py"
- {{slack-token}}
- {{slack-channel}}