Skip to content

Commit

Permalink
chore: slack notify (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen authored Jan 31, 2024
1 parent ca5da2d commit 9d19568
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/deploy_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ jobs:
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 3 ########################
deploy_region_3:
name: deploy
Expand Down Expand Up @@ -147,4 +156,13 @@ jobs:
task-definition: 'relayers/ecs/task_definition-${{ matrix.relayer_id }}_${{ env.ENVIRONMENT }}.json'
service: 'relayer-${{ matrix.relayer_id }}-service-${{ env.ENVIRONMENT }}'
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
37 changes: 37 additions & 0 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
REGISTRY: 'ghcr.io'
TAG: 'latest'


jobs:
push:
name: push
Expand Down Expand Up @@ -46,6 +47,15 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.TAG }}

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 1 ########################
deploy_reg_1:
needs: push
Expand Down Expand Up @@ -96,6 +106,15 @@ jobs:
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 2 ########################
deploy_reg_2:
needs: push
Expand Down Expand Up @@ -146,6 +165,15 @@ jobs:
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 3 ########################
deploy_reg_3:
needs: push
Expand Down Expand Up @@ -195,3 +223,12 @@ jobs:
service: 'relayer-${{ matrix.relayer_id }}-service-${{ env.ENVIRONMENT }}'
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
29 changes: 28 additions & 1 deletion .github/workflows/deploy_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 1 ########################
deploy:
needs: push
Expand Down Expand Up @@ -104,6 +113,15 @@ jobs:
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

######################## region 2 ########################

######################## region 3 ########################
Expand Down Expand Up @@ -154,4 +172,13 @@ jobs:
task-definition: 'relayers/ecs/task_definition-${{ matrix.relayer_id }}_${{ env.ENVIRONMENT }}.json'
service: 'relayer-${{ matrix.relayer_id }}-service-${{ env.ENVIRONMENT }}'
cluster: 'relayer-${{ env.ENVIRONMENT }}'
wait-for-service-stability: true
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

0 comments on commit 9d19568

Please sign in to comment.