1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-27 02:14:24 +01:00
bitwarden-estensione-browser/.github/workflows/deploy-web.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

291 lines
11 KiB
YAML
Raw Normal View History

---
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
name: Deploy Web Vault
run-name: Deploy Web Vault to ${{ inputs.environment }}
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment'
default: 'QA'
type: choice
options:
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- USQA
- EUQA
- USPROD
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- EUPROD
- USDEV
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
branch-or-tag:
description: "Branch or Tag name to deploy (examples: 'main', 'feature/sm', 'web-v2023.12.0')"
type: string
default: main
workflow_call:
inputs:
environment:
description: 'Environment'
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
default: 'USQA'
type: string
branch-or-tag:
description: "Branch or Tag name to deploy (examples: 'main', 'feature/sm', 'web-v2023.12.0')"
type: string
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
default: main
permissions:
deployments: write
jobs:
setup:
name: Setup
runs-on: ubuntu-20.04
outputs:
environment: ${{ steps.config.outputs.environment }}
environment-url: ${{ steps.config.outputs.environment-url }}
environment-name: ${{ steps.config.outputs.environment-name }}
environment-artifact: ${{ steps.config.outputs.environment-artifact }}
azure-login-creds: ${{ steps.config.outputs.azure-login-creds }}
retrieve-secrets-keyvault: ${{ steps.config.outputs.retrieve-secrets-keyvault }}
steps:
- name: Configure
id: config
run: |
ENV_NAME_LOWER=$(echo "${{ inputs.environment }}" | awk '{print tolower($0)}')
echo "configuring the Web deploy for ${{ inputs.environment }}"
echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
case ${{ inputs.environment }} in
"USQA")
echo "azure-login-creds=AZURE_KV_US_QA_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=bw-webvault-rlktusqa-kv" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-QA.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - US QA Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.$ENV_NAME_LOWER.bitwarden.pw" >> $GITHUB_OUTPUT
;;
"EUQA")
echo "azure-login-creds=AZURE_KV_EU_QA_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=webvaulteu-westeurope-qa" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-euqa.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - EU QA Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.$ENV_NAME_LOWER.bitwarden.pw" >> $GITHUB_OUTPUT
;;
"USPROD")
echo "azure-login-creds=AZURE_KV_US_PROD_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=bw-webvault-klrt-kv" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-COMMERCIAL.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - US Production Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.bitwarden.com" >> $GITHUB_OUTPUT
;;
"EUPROD")
echo "azure-login-creds=AZURE_KV_EU_PRD_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=webvault-westeurope-prod" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-euprd.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - EU Production Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.bitwarden.eu" >> $GITHUB_OUTPUT
;;
"USDEV")
echo "azure-login-creds=AZURE_KV_US_DEV_SERVICE_PRINCIPAL" >> $GITHUB_OUTPUT
echo "retrieve-secrets-keyvault=webvault-eastus-dev" >> $GITHUB_OUTPUT
echo "environment-artifact=web-*-cloud-usdev.zip" >> $GITHUB_OUTPUT
echo "environment-name=Web Vault - US Development Cloud" >> $GITHUB_OUTPUT
echo "environment-url=http://vault.$ENV_NAME_LOWER.bitwarden.pw" >> $GITHUB_OUTPUT
;;
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
esac
approval:
name: Approval for Deployment to ${{ needs.setup.outputs.environment-name }}
needs: setup
runs-on: ubuntu-22.04
environment: ${{ needs.setup.outputs.environment-name }}
steps:
- name: Success Code
run: exit 0
get-branch-or-tag-sha:
name: Get Branch or Tag SHA
runs-on: ubuntu-22.04
outputs:
branch-or-tag-sha: ${{ steps.get-branch-or-tag-sha.outputs.sha }}
steps:
- name: Checkout Branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ inputs.branch-or-tag }}
fetch-depth: 0
- name: Get Branch or Tag SHA
id: get-branch-or-tag-sha
run: |
2024-01-16 18:28:47 +01:00
echo "sha=$(git rev-parse origin/${{ inputs.branch-or-tag }})" >> $GITHUB_OUTPUT
notify-start:
name: Notify Slack with start message
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
needs:
- approval
- setup
- get-branch-or-tag-sha
runs-on: ubuntu-22.04
if: ${{ always() && contains( inputs.environment , 'QA' ) }}
outputs:
channel_id: ${{ steps.slack-message.outputs.channel_id }}
ts: ${{ steps.slack-message.outputs.ts }}
steps:
- uses: bitwarden/gh-actions/report-deployment-status-to-slack@main
id: slack-message
with:
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
project: Clients
environment: ${{ needs.setup.outputs.environment-name }}
tag: ${{ inputs.branch-or-tag }}
slack-channel: team-eng-qa-devops
event: 'start'
commit-sha: ${{ needs.get-branch-or-tag-sha.outputs.branch-or-tag-sha }}
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
needs: setup
env:
_ENVIRONMENT_ARTIFACT: ${{ needs.setup.outputs.environment-artifact }}
steps:
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- name: 'Download latest cloud asset from branch/tag: ${{ inputs.branch-or-tag }}'
2023-11-08 19:08:34 +01:00
uses: bitwarden/gh-actions/download-artifacts@main
id: download-artifacts
continue-on-error: true
with:
workflow: build-web.yml
path: apps/web
workflow_conclusion: success
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
branch: ${{ inputs.branch-or-tag }}
artifacts: ${{ env._ENVIRONMENT_ARTIFACT }}
- name: Login to Azure
if: ${{ steps.download-artifacts.outcome == 'failure' }}
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: Retrieve secrets for Build trigger
if: ${{ steps.download-artifacts.outcome == 'failure' }}
id: retrieve-secret
2023-11-08 19:08:34 +01:00
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: "bitwarden-ci"
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- name: 'Trigger build web for missing branch/tag ${{ inputs.branch-or-tag }}'
if: ${{ steps.download-artifacts.outcome == 'failure' }}
uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be # v1.6.5
with:
owner: bitwarden
repo: clients
github_token: ${{ steps.retrieve-secret.outputs.github-pat-bitwarden-devops-bot-repo-scope }}
workflow_file_name: build-web.yml
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
ref: ${{ inputs.branch-or-tag }}
wait_interval: 100
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
azure-deploy:
name: Deploy Web Vault to ${{ inputs.environment }} Storage Account
needs:
- setup
- artifact-check
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- approval
runs-on: ubuntu-22.04
env:
_ENVIRONMENT: ${{ needs.setup.outputs.environment }}
_ENVIRONMENT_URL: ${{ needs.setup.outputs.environment-url }}
_ENVIRONMENT_NAME: ${{ needs.setup.outputs.environment-name }}
_ENVIRONMENT_ARTIFACT: ${{ needs.setup.outputs.environment-artifact }}
steps:
- name: Create GitHub deployment
uses: chrnorm/deployment-action@d42cde7132fcec920de534fffc3be83794335c00 # v2.0.5
id: deployment
with:
token: '${{ secrets.GITHUB_TOKEN }}'
initial-status: 'in_progress'
environment-url: ${{ env._ENVIRONMENT_URL }}
environment: ${{ env._ENVIRONMENT_NAME }}
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
task: 'deploy'
description: 'Deployment from branch/tag: ${{ inputs.branch-or-tag }}'
- name: Login to Azure
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
creds: ${{ secrets[needs.setup.outputs.azure-login-creds] }}
- name: Retrieve Storage Account connection string
id: retrieve-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: ${{ needs.setup.outputs.retrieve-secrets-keyvault }}
secrets: "sa-bitwarden-web-vault-dev-key-temp"
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- name: 'Download cloud asset from branch/tag: ${{ inputs.branch-or-tag }}'
uses: bitwarden/gh-actions/download-artifacts@main
with:
workflow: build-web.yml
path: apps/web
workflow_conclusion: success
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
branch: ${{ inputs.branch-or-tag }}
artifacts: ${{ env._ENVIRONMENT_ARTIFACT }}
- name: Unzip build asset
working-directory: apps/web
run: unzip ${{ env._ENVIRONMENT_ARTIFACT }}
- name: Empty container in Storage Account
run: |
az storage blob delete-batch \
--source '$web' \
--pattern '*' \
--connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}"
- name: Deploy to Azure Storage Account
working-directory: apps/web
run: |
az storage blob upload-batch \
--source "./build" \
--destination '$web' \
--connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \
--overwrite \
--no-progress
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- name: Update deployment status to Success
if: success()
uses: chrnorm/deployment-status@2afb7d27101260f4a764219439564d954d10b5b0 # v2.0.1
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: ${{ env._ENVIRONMENT_URL }}
state: 'success'
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status to Failure
if: failure()
uses: chrnorm/deployment-status@2afb7d27101260f4a764219439564d954d10b5b0 # v2.0.1
with:
token: '${{ secrets.GITHUB_TOKEN }}'
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() && contains( inputs.environment , 'QA' ) }}
needs:
- notify-start
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
- azure-deploy
- setup
- get-branch-or-tag-sha
steps:
2023-11-08 19:08:34 +01:00
- uses: bitwarden/gh-actions/report-deployment-status-to-slack@main
with:
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
project: Clients
environment: ${{ needs.setup.outputs.environment-name }}
tag: ${{ inputs.branch-or-tag }}
slack-channel: ${{ needs.notify-start.outputs.channel_id }}
DEVOPS-1683 Refactor deploy-web workflow (#7184) * DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml: Changed destination container to '$web' and added delete-destination flag * DEVOPS-1683 FIX: Source path in Azure Storage Blob sync * DEVOPS-1683 REFACTOR: deploy-non-prod-web.yml with tag input * DEVOPS-1683 REFACTOR: Add EUPROD environment configuration * DEVOPS-1683 DELETE: deploy workflow for EU-QA web * DEVOPS-1683 ADD: GitHub deployment and update deployment status * DEVOPS-1683 REFACTOR: Slack channel for devops alerts for testing purposes * DEVOPS-1683 ADD: environment variables to deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: environment URLs in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: Deploy workflow for EU-PRD Cloud * DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app * DEVOPS-1683 REFACTOR: deploy configuration for non-prod web environments * DEVOPS-1683 DELETE: environment-branch and cfpages-deploy from deploy-non-prod-web workflow * DEVOPS-1683 REFACTOR: deployment environment in deploy-non-prod-web.yml * DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes * Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. * DEVOPS-1683 ADD: write permissions for deployments * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: deployment status to use dynamic values * DEVOPS-1683 REFACTOR: slack-channel in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: project name in deployment workflow * DEVOPS-1683 ADD: Deploy task to non-prod web deployment workflow * DEVOPS-1683 ADD: Approval step for deployment * DEVOPS-1683 REFACTOR: Approval job for deployment to non-prod web environment * DEVOPS-1683 REFACTOR: branch reference in deploy workflow * DEVOPS-1683 REFACTOR: default branch name in deploy-non-prod-web.yml * DEVOPS-1683 ADD: notify-start job to deployment workflow * DEVOPS-1683 REFACTOR: deploy workflow name * DEVOPS-1683 Update default environment to USQA in deploy-non-prod-web.yml * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-non-prod-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * DEVOPS-1683 REFACTOR: Slack channel for non-prod deployment * DEVOPS-1683 REFACTOR: environment configuration for non-production web deployment * DEVOPS-1683 REFACTOR: job name for building web for missing branch * DEVOPS-1683 REFACTOR: notify-start dependencies need setup job * DEVOPS-1683 REFACTOR download and trigger steps in deploy-non-prod-web.yml * DEVOPS-1683 REFACTOR: branch name in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * Revert "DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml" This reverts commit 2ae5519fdc4745ea71d8a9e34a74bfd4286fe395. * DEVOPS-1683 REFACTOR: branch/tag references in deploy workflow * DEVOPS-1683 RENAME: deploy-non-prod-web.yml to deploy-web.yml * DEVOPS-1683 REFACTOR: branch-or-tag description * Revert "DEVOPS-1683 REFACTOR: branch-or-tag description" This reverts commit a326a32bf3c8fccd0b58d5a8202719ede5dafd38. * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> * Update .github/workflows/deploy-web.yml Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-12-19 00:09:36 +01:00
event: ${{ needs.azure-deploy.result }}
url: https://github.com/bitwarden/clients/actions/runs/${{ github.run_id }}
commit-sha: ${{ needs.get-branch-or-tag-sha.outputs.branch-or-tag-sha }}
update-ts: ${{ needs.notify-start.outputs.ts }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}