about summary refs log tree commit diff
path: root/nixos/maintainers/scripts/azure/create-azure.sh
blob: f87a88404f679e9ef7753fd62e27ddefbe31fbbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#! /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