Skip to content
Snippets Groups Projects
Commit b8f88561 authored by Yu-Hsin Yang's avatar Yu-Hsin Yang
Browse files

Update webhook message color

parent 9fc1c407
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ func formatSlackMessage(canary interface{}, remoteIP string) (string, []Attachme
var color string
switch v.FieldByName("Level").Interface() {
case "low":
color = "#36a64f"
color = "#0000ff"
case "medium":
color = "#ffcc00"
case "high":
......
......@@ -6,7 +6,7 @@
description: 'this canary is in gitlab project blah blah'
type: 'all'
alert: 'all'
level: 'medium'
level: 'low'
- key: 'mycanary2'
tag: 'gitlab-canary2'
description: 'test2'
......
......@@ -11,6 +11,10 @@ services:
- ./config.yaml:/canary/config.yaml
- ./cert.pem:/canary/cert.pem
- ./cert.key:/canary/cert.key
#Map known certificates
- /etc/ssl:/etc/ssl
#Or for redhat derivatives:
- /etc/pki:/etc/pki
container_name: gocanary
restart: always
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment