From 9a784bbc412fbd2d7ce3d3ebb39f20adf349f43a Mon Sep 17 00:00:00 2001 From: Sourik Ghosh Date: Sat, 5 Mar 2022 10:05:43 +0530 Subject: [PATCH 1/3] overwrite flag added to az storage blob upload-batch Signed-off-by: Sourik Ghosh --- .circleci/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh index 26bc07c73..dc9912885 100755 --- a/.circleci/deploy.sh +++ b/.circleci/deploy.sh @@ -46,4 +46,4 @@ make build-cross make dist checksum VERSION="${VERSION}" echo "Pushing binaries to Azure" -az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" +az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite From 9c064f9cf49dce0e439cbc99ed77db970d12abec Mon Sep 17 00:00:00 2001 From: Sourik Ghosh Date: Wed, 9 Mar 2022 00:04:11 +0530 Subject: [PATCH 2/3] only apply overwrite if version is canary Signed-off-by: Sourik Ghosh --- .circleci/deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh index dc9912885..d67e1217e 100755 --- a/.circleci/deploy.sh +++ b/.circleci/deploy.sh @@ -46,4 +46,8 @@ make build-cross make dist checksum VERSION="${VERSION}" echo "Pushing binaries to Azure" +if [[ "${VERSION}" == "canary" ]]; then az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite +else +az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" +if \ No newline at end of file From cfeb431e3c52d59f2bd1853f66bab042f208e989 Mon Sep 17 00:00:00 2001 From: Sourik Ghosh Date: Wed, 9 Mar 2022 00:09:19 +0530 Subject: [PATCH 3/3] linting issue fixed Signed-off-by: Sourik Ghosh --- .circleci/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh index d67e1217e..876c510c6 100755 --- a/.circleci/deploy.sh +++ b/.circleci/deploy.sh @@ -47,7 +47,7 @@ make dist checksum VERSION="${VERSION}" echo "Pushing binaries to Azure" if [[ "${VERSION}" == "canary" ]]; then -az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite + az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" --overwrite else -az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" + az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" if \ No newline at end of file