From 48c60337924d22adefae0f34077a2b8580b9dff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ch=C4=99ci=C5=84ski?= Date: Wed, 29 Nov 2023 09:41:22 +0100 Subject: [PATCH] [DEVOPS-1651] Update the QA deployment alert at the start (#6998) * Update the QA deployment alert at the start * Change in non prod web --- .github/workflows/deploy-eu-qa-web.yml | 18 +++++++++++++++++- .github/workflows/deploy-non-prod-web.yml | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-eu-qa-web.yml b/.github/workflows/deploy-eu-qa-web.yml index b647894653..9fa50f3ba3 100644 --- a/.github/workflows/deploy-eu-qa-web.yml +++ b/.github/workflows/deploy-eu-qa-web.yml @@ -11,6 +11,21 @@ on: default: master jobs: + notify-start: + name: Notify Slack with start message + runs-on: ubuntu-22.04 + if: always() + steps: + - uses: bitwarden/gh-actions/report-deployment-status-to-slack@main + with: + project: Web + environment: EU QA Cloud + tag: ${{ github.ref_name }} + slack-channel: team-eng-qa-devops + event: 'start' + url: https://github.com/bitwarden/clients/actions/runs/${{ github.run_id }} + AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} + azure-deploy: name: Deploy to Azure runs-on: ubuntu-22.04 @@ -71,5 +86,6 @@ jobs: environment: EU QA Cloud tag: ${{ github.event.inputs.tag }} slack-channel: team-eng-qa-devops - failure: ${{ needs.azure-deploy.result == 'failure' }} + event: ${{ needs.azure-deploy.result }} + url: https://github.com/bitwarden/devops/actions/runs/${{ github.run_id }} 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 296a77e581..2a92a4d401 100644 --- a/.github/workflows/deploy-non-prod-web.yml +++ b/.github/workflows/deploy-non-prod-web.yml @@ -57,6 +57,21 @@ jobs: echo "environment-artifact=web-*-cloud-COMMERCIAL.zip" >> $GITHUB_OUTPUT fi + notify-start: + name: Notify Slack with start message + runs-on: ubuntu-22.04 + if: always() + steps: + - uses: bitwarden/gh-actions/report-deployment-status-to-slack@main + with: + project: Web + environment: US ${{ inputs.environment }} Cloud + tag: ${{ github.ref_name }} + slack-channel: team-eng-qa-devops + event: 'start' + url: https://github.com/bitwarden/clients/actions/runs/${{ github.run_id }} + AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} + artifact-check: name: Check if Web artifact is present runs-on: ubuntu-22.04 @@ -253,5 +268,6 @@ jobs: environment: US ${{ inputs.environment }} Cloud tag: ${{ github.ref_name }} slack-channel: team-eng-qa-devops - failure: ${{ needs.cfpages-deploy.result == 'failure' }} + event: ${{ needs.cfpages-deploy.result }} + url: https://github.com/bitwarden/clients/actions/runs/${{ github.run_id }} AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}