forked from demo42/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·30 lines (23 loc) · 741 Bytes
/
deploy.sh
File metadata and controls
executable file
·30 lines (23 loc) · 741 Bytes
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
26
27
28
29
30
#!/bin/sh
set -e
# SP, PASSWORD , CLUSTER_NAME, CLUSTER_RESOURCE_GROUP
az configure --defaults acr=$RUN_REGISTRYNAME
mkdir /tmp
az login \
--service-principal \
--username $SP \
--password $PASSWORD \
--tenant $TENANT > /dev/null
az aks get-credentials \
-g $CLUSTER_RESOURCE_GROUP \
-n $CLUSTER_NAME
echo -- helm init --client-only --
helm init --client-only # > /dev/null
echo -- az acr helm repo add --
az acr helm repo add
echo -- helm fetch --untar $RUN_REGISTRYNAME/importantThings --
helm fetch --untar $RUN_REGISTRYNAME/importantThings
echo -- helm upgrade demo42 ./importantThings --
helm upgrade demo42 ./importantThings \
--reuse-values \
--set web.image=$RUN_REGISTRY/demo42/web:$RUN_ID