virtualization/azure: update the scripts for image maintenance

+23 -4
+1 -4
nixos/maintainers/scripts/azure/create-azure.sh
··· 1 1 #! /bin/sh -e 2 2 3 - BUCKET_NAME=${BUCKET_NAME:-nixos} 4 3 export NIX_PATH=nixpkgs=../../../.. 5 4 export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/azure-image.nix 6 5 export TIMESTAMP=$(date +%Y%m%d%H%M) 7 6 8 7 nix-build '<nixpkgs/nixos>' \ 9 - -A config.system.build.azureImage --argstr system x86_64-linux -o azure --option extra-binary-caches http://hydra.nixos.org -j 10 10 - 11 - azure vm image create nixos-test --location "West Europe" --md5-skip -v --os Linux azure/disk.vhd 8 + -A config.system.build.azureImage --argstr system x86_64-linux -o azure --option extra-binary-caches https://hydra.nixos.org -j 10
+22
nixos/maintainers/scripts/azure/upload-azure.sh
··· 1 + #! /bin/sh -e 2 + 3 + export STORAGE=${STORAGE:-nixos} 4 + export THREADS=${THREADS:-8} 5 + 6 + azure-vhd-utils-for-go upload --localvhdpath azure/disk.vhd --stgaccountname "$STORAGE" --stgaccountkey "$KEY" \ 7 + --containername images --blobname nixos-unstable-nixops-updated.vhd --parallelism "$THREADS" --overwrite 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 +