diff options
author | Evgeny Egorochkin <phreedom@yandex.ru> | 2016-03-13 12:36:40 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2016-03-13 13:57:31 +0200 |
commit | 158d723812e7364d8cadd7802d0b8d239fb227d8 (patch) | |
tree | d34b4907695950ca1150b8d6e6451f23ccb4fe44 /nixos/maintainers | |
parent | 88ba7d8ecd31bfd4f26ae02d9a68116b83053072 (diff) |
virtualization/azure: update the scripts for image maintenance
Diffstat (limited to 'nixos/maintainers')
-rwxr-xr-x | nixos/maintainers/scripts/azure/create-azure.sh | 5 | ||||
-rwxr-xr-x | nixos/maintainers/scripts/azure/upload-azure.sh | 22 |
2 files changed, 23 insertions, 4 deletions
diff --git a/nixos/maintainers/scripts/azure/create-azure.sh b/nixos/maintainers/scripts/azure/create-azure.sh index f87a88404f67..a834566be8f7 100755 --- a/nixos/maintainers/scripts/azure/create-azure.sh +++ b/nixos/maintainers/scripts/azure/create-azure.sh @@ -1,11 +1,8 @@ #! /bin/sh -e -BUCKET_NAME=${BUCKET_NAME:-nixos} export NIX_PATH=nixpkgs=../../../.. export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/azure-image.nix export TIMESTAMP=$(date +%Y%m%d%H%M) nix-build '<nixpkgs/nixos>' \ - -A config.system.build.azureImage --argstr system x86_64-linux -o azure --option extra-binary-caches http://hydra.nixos.org -j 10 - -azure vm image create nixos-test --location "West Europe" --md5-skip -v --os Linux azure/disk.vhd + -A config.system.build.azureImage --argstr system x86_64-linux -o azure --option extra-binary-caches https://hydra.nixos.org -j 10 diff --git a/nixos/maintainers/scripts/azure/upload-azure.sh b/nixos/maintainers/scripts/azure/upload-azure.sh new file mode 100755 index 000000000000..2ea35d1d4c33 --- /dev/null +++ b/nixos/maintainers/scripts/azure/upload-azure.sh @@ -0,0 +1,22 @@ +#! /bin/sh -e + +export STORAGE=${STORAGE:-nixos} +export THREADS=${THREADS:-8} + +azure-vhd-utils-for-go upload --localvhdpath azure/disk.vhd --stgaccountname "$STORAGE" --stgaccountkey "$KEY" \ + --containername images --blobname nixos-unstable-nixops-updated.vhd --parallelism "$THREADS" --overwrite + + + + + + + + + + + + + + + |