1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

DEVOPS-1581 REFACTOR: Deploy script to use azcopy for syncing files to Azure Storage Account

This commit is contained in:
Alex Urbina 2023-11-22 18:20:53 -06:00
parent 78a157bc34
commit 2b7c3ae1a7
No known key found for this signature in database
GPG Key ID: BFAFE8D81FF8B38D

View File

@ -129,22 +129,10 @@ jobs:
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
azcopy sync "./build" "$web" --recursive --delete-destination --connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}"
notify:
name: Notify Slack with result