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:
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
|
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() }}
|
||||||
|
|||||||
Reference in New Issue
Block a user