Skip to content

Commit

Permalink
CD: send slack msg when container shutdown and restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jinho-choi123 committed May 10, 2024
1 parent c70466a commit 86c9609
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .docker/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SLACK_WATCHTOWER_WEBHOOK=
5 changes: 4 additions & 1 deletion .docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ services:
image: ghcr.io/sparcs-kaist/zabo-boards:latest
ports:
- 8888:80
labels: [ "com.centurylinklabs.watchtower.scope=zabo-boards" ]
labels:
- "com.centurylinklabs.watchtower.scope=zabo-boards"
- 'com.centurylinklabs.watchtower.lifecycle.pre-update=curl -X POST -H ''Content-type: application/json'' --data ''{"text":"[PROD] 업데이트를 위해 zabo-boards 서비스를 종료시켰습니다."}'' ${SLACK_WATCHTOWER_WEBHOOK}'
- 'com.centurylinklabs.watchtower.lifecycle.post-update=curl -X POST -H ''Content-type: application/json'' --data ''{"text":"[PROD] 업데이트 후 zabo-boards 서비스를 재시작하였습니다."}'' ${SLACK_WATCHTOWER_WEBHOOK}'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"prod": "docker compose -p zabo-boards -f .docker/docker-compose.yaml",
"prod": "docker compose -p zabo-boards -f .docker/docker-compose.yaml --env-file .docker/.env.production",
"prod:up": "yarn prod up",
"prod:down": "yarn prod down",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
Expand Down

0 comments on commit 86c9609

Please sign in to comment.