From 6a0a83c082e42fcec70e3acd7768e8ebf581c0a6 Mon Sep 17 00:00:00 2001 From: Alex Urbina Date: Tue, 28 Nov 2023 22:58:39 -0600 Subject: [PATCH] DEVOPS-1683 REFACTOR: Azure Storage Account Blob container sync --- .github/workflows/deploy-non-prod-web.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-non-prod-web.yml b/.github/workflows/deploy-non-prod-web.yml index 296a77e581d..8697e176ca4 100644 --- a/.github/workflows/deploy-non-prod-web.yml +++ b/.github/workflows/deploy-non-prod-web.yml @@ -222,21 +222,13 @@ jobs: working-directory: apps/web run: unzip ${{ env._ENVIRONMENT_ARTIFACT }} - - name: Empty container in Storage Account + - name: Sync blobs recursively to a Storage Account Blob container 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 \ + az storage blob sync \ --source "./build" \ --destination '$web' \ --connection-string "${{ steps.retrieve-secrets.outputs.sa-bitwarden-web-vault-dev-key-temp }}" \ - --overwrite \ + --delete-destination \ --no-progress notify: