-
Notifications
You must be signed in to change notification settings - Fork 27
/
deploy-live-demo.sh
executable file
·25 lines (19 loc) · 1.05 KB
/
deploy-live-demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# ================================================================================================
# This script is only used to deploy the live demo instance, 99.99% of people can ignore this :)
# ================================================================================================
echo "😲 Warning! You are about to deploy to the live demo environment";
read -n 1 -s -r -p "Press any key to continue, or ctrl+c to exit...";
echo
export AZURE_TENANT="72f988bf-86f1-41af-91ab-2d7cd011db47"
export AZURE_SUB="62f51b53-9e7e-4673-8fcf-e312c82e113b"
export GITHUB_REPO=https://github.com/benc-uk/chatr.git
export AZURE_REGION=centralus
export AZURE_PREFIX=chatrlive
export AZURE_RESGRP=chatr-live
az account show > /dev/null 2>&1 || { echo "🔐 Not logged into Azure, logging into Microsoft tenant..."; az login --tenant ${AZURE_TENANT} > /dev/null ; }
echo "⛅ Switching to Azure subscription ${AZURE_SUB}..."
az account set -s ${AZURE_SUB} -o table
"${SCRIPT_DIR}"/deploy.sh