Skip to content

Commit

Permalink
ci: add overwrite flag to az storage upload
Browse files Browse the repository at this point in the history
The storage command of azure cli needs an overwrite flag set to true
since v2.34.0

see Azure/azure-cli#21477
  • Loading branch information
a-cordier authored and gaetanmaisse committed Mar 9, 2022
1 parent 6103f8a commit 731f1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ jobs:
export BRANCH_ID=$(echo "$CIRCLE_BRANCH" | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr "[:upper:]" "[:lower:]" | cut -c -60)
az login --service-principal -u $AZURE_APPLICATION_ID --tenant $AZURE_TENANT -p $AZURE_APPLICATION_SECRET
az storage container create -n $BRANCH_ID --public-access blob
az storage blob upload-batch -s gravitee-apim-console-webui/dist -d $BRANCH_ID
az storage blob upload-batch --overwrite true -s gravitee-apim-console-webui/dist -d $BRANCH_ID
- notify-on-failure

console-webui-comment-pr-after-deployment:
Expand Down

0 comments on commit 731f1ec

Please sign in to comment.