summary refs log tree commit diff
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2020-03-27 20:01:20 +0000
committerJon <jonringer@users.noreply.github.com>2020-03-29 13:56:55 -0700
commita5de97f21e688e23f5c261a397950788162f7041 (patch)
treeee3efa97b0360886f309df7e3d19852822e071e4
parentc2b2cc6dbdc02a9b1b3450d24c4b387e5c2203b7 (diff)
downloadnixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar.gz
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar.bz2
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar.lz
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar.xz
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.tar.zst
nixpkgs-a5de97f21e688e23f5c261a397950788162f7041.zip
nixos/azure: upload-image names the image better
-rwxr-xr-xnixos/maintainers/scripts/azure-new/upload-image.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/maintainers/scripts/azure-new/upload-image.sh b/nixos/maintainers/scripts/azure-new/upload-image.sh
index 4f3da6778e8..4dd5cdfd019 100755
--- a/nixos/maintainers/scripts/azure-new/upload-image.sh
+++ b/nixos/maintainers/scripts/azure-new/upload-image.sh
@@ -8,13 +8,16 @@ nix-build ./examples/basic/image.nix --out-link "azure"
 
 group="nixos-images"
 location="westus2"
-img_name="azure-image-todo-makethisbetter" # TODO: clean this up
-img_file="$(readlink -f ./azure/disk.vhd)" # TODO: this doesn't feel great either
+img_name="nixos-image"
+img_file="$(readlink -f ./azure/disk.vhd)"
 
 if ! az group show -n "${group}" &>/dev/null; then
   az group create --name "${group}" --location "${location}"
 fi
 
+# note: the disk access token song/dance is tedious
+# but allows us to upload direct to a disk image
+# thereby avoid storage accounts (and naming them) entirely!
 if ! az disk show -g "${group}" -n "${img_name}" &>/dev/null; then
   bytes="$(stat -c %s ${img_file})"
   size="30"