mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app
This commit is contained in:
19
.github/workflows/deploy-non-prod-web.yml
vendored
19
.github/workflows/deploy-non-prod-web.yml
vendored
@@ -249,13 +249,22 @@ jobs:
|
||||
working-directory: apps/web
|
||||
run: unzip ${{ env._ENVIRONMENT_ARTIFACT }}
|
||||
|
||||
- name: Sync blobs recursively to a Storage Account Blob container
|
||||
- name: Empty container in Storage Account
|
||||
run: |
|
||||
az storage blob sync \
|
||||
--source "./build/" \
|
||||
--container '$web' \
|
||||
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 }}" \
|
||||
--delete-destination=true
|
||||
--overwrite \
|
||||
--no-progress
|
||||
|
||||
- name: Update deployment status to Success
|
||||
if: ${{ success() }}
|
||||
|
||||
Reference in New Issue
Block a user