1
0
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:
Alex Urbina
2023-12-05 19:28:08 -06:00
parent 4bf191fe14
commit 2cf2c8fa8b

View File

@@ -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() }}