Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Github Actions container build statuses to Slack #755

Merged
merged 3 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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