DEVOPS-1581 REFACTOR: Deploy script to use azcopy for syncing files to Azure Storage Account
This commit is contained in:
parent
78a157bc34
commit
2b7c3ae1a7
|
@ -129,22 +129,10 @@ jobs:
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
run: unzip ${{ env._ENVIRONMENT_ARTIFACT }}
|
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
|
- name: Deploy to Azure Storage Account
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
run: |
|
run: |
|
||||||
az storage blob upload-batch \
|
azcopy sync "./build" "$web" --recursive --delete-destination --connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}"
|
||||||
--source "./build" \
|
|
||||||
--destination '$web' \
|
|
||||||
--connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \
|
|
||||||
--overwrite \
|
|
||||||
--no-progress
|
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
name: Notify Slack with result
|
name: Notify Slack with result
|
||||||
|
|
Loading…
Reference in New Issue