summary refs log tree commit diff
path: root/nixos/maintainers/scripts/azure-new/common.sh
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2020-03-26 06:11:54 +0000
committerJon <jonringer@users.noreply.github.com>2020-03-29 13:56:55 -0700
commit20f981de08d8bc407d0897c03b963f5aba6fda50 (patch)
tree7c28ce834a25f6443b7ff232c18d65133cd0a41f /nixos/maintainers/scripts/azure-new/common.sh
parenta5a6d77508dfd515e5f94ad92d2dfb9065e787c0 (diff)
downloadnixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar.gz
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar.bz2
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar.lz
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar.xz
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.tar.zst
nixpkgs-20f981de08d8bc407d0897c03b963f5aba6fda50.zip
azure: init nixos/maintainers/scripts/azure-new
Diffstat (limited to 'nixos/maintainers/scripts/azure-new/common.sh')
-rw-r--r--nixos/maintainers/scripts/azure-new/common.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/maintainers/scripts/azure-new/common.sh b/nixos/maintainers/scripts/azure-new/common.sh
new file mode 100644
index 00000000000..eb87c3e0650
--- /dev/null
+++ b/nixos/maintainers/scripts/azure-new/common.sh
@@ -0,0 +1,7 @@
+export group="${AZURE_RESOURCE_GROUP:-"azure"}"
+export location="${AZURE_LOCATION:-"westus2"}"
+
+img_file=$(echo azure/*.vhd)
+img_name="$(basename "${img_file}")"
+img_name="${img_name%".vhd"}"
+export img_name="${img_name//[._]/-}"