diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index d38cf66f0..ee80c8586 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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 }} \ No newline at end of file + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + with: + channel: gds-github + status: FAILED + color: danger \ No newline at end of file diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index ed57b9bb6..c489d185e 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + 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 \ No newline at end of file + 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/github-action-slack-notify-build@v1.1.2 + 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/github-action-slack-notify-build@v1.1.2 + with: + channel: gds-github + status: FAILED + color: danger