Add slack notify when deploying web QA (#6724)

This commit is contained in:
Michał Chęciński 2023-11-02 17:30:17 +01:00 committed by GitHub
parent db221dee05
commit 0a7fcddd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -58,3 +58,18 @@ jobs:
--connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \ --connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \
--overwrite \ --overwrite \
--no-progress --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 }}

View File

@ -170,3 +170,20 @@ jobs:
environment-url: ${{ env._ENVIRONMENT_URL }} environment-url: ${{ env._ENVIRONMENT_URL }}
state: 'failure' state: 'failure'
deployment-id: ${{ steps.deployment.outputs.deployment_id }} 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 }}