mirror of
https://github.com/bitwarden/browser
synced 2024-12-24 17:11:55 +01:00
DEVOPS-1581 REFACTOR: Deploy script to use azcopy for syncing files to Azure Storage Account
This commit is contained in:
parent
78a157bc34
commit
2b7c3ae1a7
14
.github/workflows/deploy-non-prod-web.yml
vendored
14
.github/workflows/deploy-non-prod-web.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user