Skip to content

Commit

Permalink
adds slack notifications to Github Actions container build yaml (#755)
Browse files Browse the repository at this point in the history
Co-authored-by: Cletus Razakou <[email protected]>
  • Loading branch information
2 people authored and elysee15 committed Sep 2, 2022
1 parent 614e506 commit 42f9529
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 2 deletions.
143 changes: 142 additions & 1 deletion .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,27 @@ jobs:
build-args: |
GIT_REVISION=${{ steps.vars.outputs.revision }}
- name: Slack Notify GDS Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify GDS Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger


# GDS Backend for Front-End Service
gds-bff:
name: GDS BFF
Expand Down Expand Up @@ -142,6 +163,26 @@ jobs:
build-args: |
GIT_REVISION=${{ steps.vars.outputs.revision }}
- name: Slack Notify BFF Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify BFF Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# GDS User UI: vaspdirectory.net
gds-user-ui:
name: GDS UI
Expand Down Expand Up @@ -217,6 +258,26 @@ jobs:
REACT_APP_AUTH0_AUDIENCE=https://bff.vaspdirectory.net
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
- name: Slack Notify User UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify User UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# GDS Admin UI: admin.vaspdirectory.net
gds-admin-ui:
name: GDS Admin UI
Expand Down Expand Up @@ -280,6 +341,26 @@ jobs:
REACT_APP_GOOGLE_CLIENT_ID=${{ secrets.REACT_APP_VASPDIRECTORY_CLIENT_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_ADMIN_SENTRY_DSN }}
- name: Slack Notify Admin UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Admin UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# GDS TestNet Admin UI: admin.trisatest.net
gds-testnet-admin-ui:
name: GDS TestNet Admin UI
Expand Down Expand Up @@ -343,6 +424,26 @@ jobs:
REACT_APP_GOOGLE_CLIENT_ID=${{ secrets.REACT_APP_TRISATEST_CLIENT_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_ADMIN_SENTRY_DSN }}
- name: Slack Notify TestNet Admin UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify TestNet Admin UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# Trtl - Globally Replicated Key-Value Store
trtl:
name: TRTL
Expand Down Expand Up @@ -407,6 +508,26 @@ jobs:
build-args: |
GIT_REVISION=${{ steps.vars.outputs.revision }}
- name: Slack Notify Trtl Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Trtl Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# Initialization container for trtl statefulsets
trtl-init:
name: TRTL Initialization Container
Expand Down Expand Up @@ -461,4 +582,24 @@ jobs:
file: ./containers/trtl-init/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

- name: Slack Notify Trtl Init Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Trtl Init Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger
62 changes: 61 additions & 1 deletion .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,26 @@ jobs:
REACT_APP_SENTRY_ENVIRONMENT=staging
REACT_APP_USE_DASH_LOCALE=true
- name: Slack Notify Staging UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Staging UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# GDS Staging Admin UI: admin.vaspdirectory.dev
gds-staging-admin-ui:
name: GDS Staging Admin UI
Expand Down Expand Up @@ -152,6 +172,26 @@ jobs:
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_ADMIN_SENTRY_DSN }}
REACT_APP_SENTRY_ENVIRONMENT=staging
- name: Slack Notify Staging Admin UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Staging Admin UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

# GDS Staging TestNet Admin UI: admin.trisatest.dev
gds-staging-testnet-admin-ui:
name: GDS Staging TestNet Admin UI
Expand Down Expand Up @@ -214,4 +254,24 @@ jobs:
REACT_APP_GDS_IS_TESTNET=true
REACT_APP_GOOGLE_CLIENT_ID=${{ secrets.REACT_APP_STAGING_TRISATEST_CLIENT_ID }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_ADMIN_SENTRY_DSN }}
REACT_APP_SENTRY_ENVIRONMENT=staging
REACT_APP_SENTRY_ENVIRONMENT=staging
- name: Slack Notify Staging TestNet UI Build Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: SUCCESS
color: good

- name: Slack Notify Staging TestNet UI Build Fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: gds-github
status: FAILED
color: danger

0 comments on commit 42f9529

Please sign in to comment.