-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
·54 lines (43 loc) · 1.39 KB
/
build-all.sh
File metadata and controls
executable file
·54 lines (43 loc) · 1.39 KB
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
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
set -e
echo "Building CortexFlow Agent"
pushd ./core
./agent-api-build.sh
popd
sleep 1
echo "Building CortexFlow Identity"
pushd ./core/src/components/identity
./build-identity.sh
popd
sleep 1
echo "Building CortexFlow Metrics"
pushd ./core/src/components/metrics
./build-metrics.sh
popd
sleep 1
echo "Insert image version. e.g 0.1.2/latest or type skip to skip the uploading processing"
echo
read -p "Insert cortexflow-agent version: " agent_version
read -p "Insert cortexflow-identity version: " identity_version
read -p "Insert cortexflow-metrics version: " metrics_version
echo
echo "Tagging & pushing docker images..."
echo
if [ "$metrics_version" != "skip" ]; then
docker tag metrics:0.0.1 lorenzotettamanti/cortexflow-metrics:$metrics_version
docker push lorenzotettamanti/cortexflow-metrics:$metrics_version
else
echo "Skipping cortexflow-metrics image upload"
fi
if [ "$agent_version" != "skip" ]; then
docker tag cortexflow-agent:0.0.1 lorenzotettamanti/cortexflow-agent:$agent_version
docker push lorenzotettamanti/cortexflow-agent:$agent_version
else
echo "Skipping cortexflow-agent image upload"
fi
if [ "$identity_version" != "skip" ]; then
docker tag identity:0.0.1 lorenzotettamanti/cortexflow-identity:$identity_version
docker push lorenzotettamanti/cortexflow-identity:$identity_version
else
echo "Skipping cortexflow-identity image upload"
fi