-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds slack notifications to Github Actions container build yaml (#755)
Co-authored-by: Cletus Razakou <[email protected]>
- Loading branch information
Showing
2 changed files
with
203 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |