-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployAll.sh
executable file
·43 lines (36 loc) · 1.99 KB
/
deployAll.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
function usage {
echo "$0 {dev|devbeta|demo|prod}"
}
if [[ -z "$1" ]]; then
usage
exit 1
fi
ENV=$1
REALENV=${ENV}
#CUR_TAG=116-fa46196
if [[ "dev" == "$ENV" ]]; then
CUR_TAG=latest
elif [[ "devbeta" == "$ENV" ]]; then
REALENV="dev"
CUR_TAG=latest
else
# $CUR_TAG=stable
CUR_TAG=latest
fi
#CUR_TAG=201909261336-dev
#if [[ "dev" == "$ENV" ]]; then
# Insta
echo ./deployK8SService.sh $ENV event-log-service $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-service-$REALENV-insta.yaml"
./deployK8SService.sh $ENV event-log-service $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-service-$REALENV-insta.yaml"
./deployK8SService.sh $ENV event-log-kafka-lookup $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-kafka-lookup-$REALENV-insta.yaml"
#else
# CosmoDB
# ./deployK8SService.sh $ENV event-log-service $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-service-log-$REALENV.yaml"
# ./deployK8SService.sh $ENV event-log-kafka-lookup $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-kafka-lookup-$REALENV.yaml"
#fi
./deployK8SService.sh $ENV event-log-encoder $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-encoder-$REALENV.yaml"
./deployK8SService.sh $ENV event-log-dispatcher $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-dispatcher-$REALENV.yaml"
./deployK8SService.sh $ENV event-log-chainer $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-chainer-$REALENV.yaml"
./deployK8SService.sh $ENV event-log-chainer-master $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-chainer-master-$REALENV.yaml"
./deployK8SService.sh $ENV event-log-discovery-creator $CUR_TAG "~/workspace/ubirch/_k8s/ubirch-kubernetes/19_event-log/values-event-log-discovery-creator-$REALENV.yaml"