From 0a7fcddd5a5a20625512faaaca76d0f1e38e16b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ch=C4=99ci=C5=84ski?= Date: Thu, 2 Nov 2023 17:30:17 +0100 Subject: [PATCH] Add slack notify when deploying web QA (#6724) --- .github/workflows/deploy-eu-qa-web.yml | 15 +++++++++++++++ .github/workflows/deploy-non-prod-web.yml | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/deploy-eu-qa-web.yml b/.github/workflows/deploy-eu-qa-web.yml index dfe7198b58..4c44188ece 100644 --- a/.github/workflows/deploy-eu-qa-web.yml +++ b/.github/workflows/deploy-eu-qa-web.yml @@ -58,3 +58,18 @@ jobs: --connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \ --overwrite \ --no-progress + + notify: + name: Notify Slack with result + runs-on: ubuntu-22.04 + if: always() + needs: azure-deploy + steps: + - uses: bitwarden/gh-actions/report-deployment-status-to-slack@master + with: + project: Web + environment: EU QA Cloud + tag: ${{ github.event.inputs.tag }} + slack-channel: team-eng-qa-devops + failure: ${{ needs.azure-deploy.result == 'failure' }} + AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} diff --git a/.github/workflows/deploy-non-prod-web.yml b/.github/workflows/deploy-non-prod-web.yml index 4c9f496fc8..316a0a6fc4 100644 --- a/.github/workflows/deploy-non-prod-web.yml +++ b/.github/workflows/deploy-non-prod-web.yml @@ -170,3 +170,20 @@ jobs: environment-url: ${{ env._ENVIRONMENT_URL }} state: 'failure' deployment-id: ${{ steps.deployment.outputs.deployment_id }} + + notify: + name: Notify Slack with result + runs-on: ubuntu-22.04 + if: always() + needs: + - cfpages-deploy + - setup + steps: + - uses: bitwarden/gh-actions/report-deployment-status-to-slack@master + with: + project: Web + environment: US QA Cloud + tag: ${{ needs.setup.outputs.environment-branch }} + slack-channel: team-eng-qa-devops + failure: ${{ needs.cfpages-deploy.result == 'failure' }} + AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}