-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker_pull.sh
executable file
·40 lines (34 loc) · 1.27 KB
/
docker_pull.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
#!/bin/bash
RED='\033[1;31m'
GREEN='\033[0;32m'
NOCOLOR='\033[0m'
source .env
echo -e "
${GREEN}To pull nightly docker images:${NOCOLOR}
${NOCOLOR}
docker pull edumeet/${EDUMEET_MN_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_MGMT_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_MGMT_CLIENT}:${TAG}
docker pull edumeet/${EDUMEET_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_CLIENT}:${TAG}
"
if [ "$1" == "pull" ]; then ## GOOD
echo -e "RUNING COMMANDS:
"
docker pull edumeet/${EDUMEET_MN_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_MGMT_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_MGMT_CLIENT}:${TAG}
docker pull edumeet/${EDUMEET_SERVER}:${TAG}
docker pull edumeet/${EDUMEET_CLIENT}:${TAG}
elif [ "$1" == "push" ]; then ## GOOD
echo -e "RUNING COMMANDS:
"
docker push edumeet/${EDUMEET_MN_SERVER}:${TAG}
docker push edumeet/${EDUMEET_MGMT_SERVER}:${TAG}
docker push edumeet/${EDUMEET_MGMT_CLIENT}:${TAG}
docker push edumeet/${EDUMEET_SERVER}:${TAG}
docker push edumeet/${EDUMEET_CLIENT}:${TAG}
else
echo -e "${RED}or run ./docker_pull.sh pull
"
fi