1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +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 working-directory: apps/web
run: unzip ${{ env._ENVIRONMENT_ARTIFACT }} run: unzip ${{ env._ENVIRONMENT_ARTIFACT }}
- name: Sync blobs recursively to a Storage Account Blob container - name: Empty container in Storage Account
run: | run: |
az storage blob sync \ az storage blob delete-batch \
--source "./build/" \ --source '$web' \
--container '$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 }}" \ --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 - name: Update deployment status to Success
if: ${{ success() }} if: ${{ success() }}