From e9962bc3eaa31b9a782c2fcd0c7857a86cba0c28 Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Mon, 13 Mar 2023 14:09:06 -0400 Subject: [PATCH] chore: update CI to tag azure buckets This PR updates CI to remove the immutability policy and tags the azure "containers" (aka buckets) with a ci=true tag. This will allow us to handle the deletion of buckets with the cloud-cleaner app. Signed-off-by: Spencer Smith --- .drone.jsonnet | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index a5a2af53ff..a3fa1e66e5 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -277,9 +277,8 @@ local save_artifacts = { }, commands: [ 'az login --service-principal -u "$${AZURE_STORAGE_USER}" -p "$${AZURE_STORAGE_PASS}" --tenant "$${AZURE_TENANT}"', - 'az storage container create -n ${CI_COMMIT_SHA}${DRONE_TAG//./-}', - 'az storage container immutability-policy create --account-name $${AZURE_STORAGE_ACCOUNT} --period 3 -c ${CI_COMMIT_SHA}${DRONE_TAG//./-}', - 'az storage blob upload-batch -s _out -d ${CI_COMMIT_SHA}${DRONE_TAG//./-}' + 'az storage container create --metadata ci=true -n ${CI_COMMIT_SHA}${DRONE_TAG//./-}', + 'az storage blob upload-batch --overwrite -s _out -d ${CI_COMMIT_SHA}${DRONE_TAG//./-}' ], volumes: volumes.ForStep(), depends_on: [build.name, images_essential.name, iso.name, talosctl_cni_bundle.name],