From 5090423e3bf6c65947cd16a43b79bcb01ae5b791 Mon Sep 17 00:00:00 2001 From: Alex Urbina Date: Mon, 11 Dec 2023 21:32:31 -0600 Subject: [PATCH] Revert "DEVOPS-1683 DELETE: steps in deploy workflow for testing purposes" This reverts commit 5ad5802857e59bf3f09d19ff44646b6cda67f48d. --- .github/workflows/deploy-non-prod-web.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/deploy-non-prod-web.yml b/.github/workflows/deploy-non-prod-web.yml index 5f70143042f..651b6a83726 100644 --- a/.github/workflows/deploy-non-prod-web.yml +++ b/.github/workflows/deploy-non-prod-web.yml @@ -161,6 +161,23 @@ 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 + - name: Update deployment status to Success if: ${{ success() }} uses: chrnorm/deployment-status@2afb7d27101260f4a764219439564d954d10b5b0 # v2.0.1