From 2cf2c8fa8b4ead01229a01972bd59b1c41647cf2 Mon Sep 17 00:00:00 2001 From: Alex Urbina Date: Tue, 5 Dec 2023 19:28:08 -0600 Subject: [PATCH] DEVOPS-1683 REFACTOR: Update deployment process for non-prod web app --- .github/workflows/deploy-non-prod-web.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-non-prod-web.yml b/.github/workflows/deploy-non-prod-web.yml index ea8e81cd189..5fd501402f9 100644 --- a/.github/workflows/deploy-non-prod-web.yml +++ b/.github/workflows/deploy-non-prod-web.yml @@ -249,13 +249,22 @@ jobs: working-directory: apps/web run: unzip ${{ env._ENVIRONMENT_ARTIFACT }} - - name: Sync blobs recursively to a Storage Account Blob container + - name: Empty container in Storage Account run: | - az storage blob sync \ - --source "./build/" \ - --container '$web' \ + 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 }}" \ - --delete-destination=true + --overwrite \ + --no-progress - name: Update deployment status to Success if: ${{ success() }}