Skip to content

Commit

Permalink
add config and ensure docker container can use config
Browse files Browse the repository at this point in the history
  • Loading branch information
TigerWolf committed Sep 19, 2023
1 parent 40583e9 commit 20b408f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM amd64/golang:1.20.3-alpine3.17 as builder
WORKDIR /usr/src/pdsync

COPY . .
COPY config.yaml /pdsync/
RUN CGO_ENABLED=0 go build -mod vendor -o /pdsync

FROM gcr.io/distroless/static-debian11 as runner
Expand Down
34 changes: 34 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
slackSyncs:
- name: Firewarden Dev Channel
schedules:
- name: Firewarden
userGroups:
- name: firewarden
- handle: firewarden
channel:
name: practices-dev-firewarden
template: |-
<@{{.Firewarden}}> is this week's :helmet_with_white_cross:
dryRun: false
- name: Firewarden Support Channel
schedules:
- name: Firewarden
userGroups:
- name: firewarden
- handle: firewarden
channel:
name: requests-product-support
template: |-
<@{{.Firewarden}}> is this week's :helmet_with_white_cross:
dryRun: false
- name: On Call
schedules:
- name: On Call
userGroups:
- name: On Call
- handle: oncall
channel:
name: practices-dev-on-call
template: |-
<@{{.OnCall}}> is On Call
dryRun: false

0 comments on commit 20b408f

Please sign in to comment.