Skip to content

Commit

Permalink
chore: update CI to tag azure buckets
Browse files Browse the repository at this point in the history
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 <spencer.smith@talos-systems.com>
  • Loading branch information
rsmitty committed Mar 13, 2023
1 parent 9f5f5cf commit e9962bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit e9962bc

Please sign in to comment.