Skip to content

Commit

Permalink
Added frontend img and fixed webhook(#126,#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-74 committed Nov 15, 2023
1 parent 6222259 commit e3670d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Build and Push Docker Images

on:
push:
Expand All @@ -7,6 +7,7 @@ on:
paths:
- '**.py'
- '**.sh'
- 'docker/Dockerfile.*'

jobs:
build-push:
Expand All @@ -30,3 +31,11 @@ jobs:
file: docker/Dockerfile.backend
push: true
tags: ghcr.io/thirdeye-dev/thirdeye:latest

- name: Build and push Docker frontend image
uses: docker/build-push-action@v2
with:
context: ..
file: docker/Dockerfile.frontend
push: true
tags: ghcr.io/thirdeye-dev/thirdeye-frontend:latest
3 changes: 3 additions & 0 deletions backend/api_app/monitoring/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def send_webhook(self, notification_id):

# just in case, we don't
# want to send the same notification twice
if notification.alert.active != True:
return

if notification.status == Notification.Status.SENT:
return

Expand Down

0 comments on commit e3670d6

Please sign in to comment.