forked from karockai/DropTheBit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
28 lines (23 loc) · 757 Bytes
/
build.sh
File metadata and controls
28 lines (23 loc) · 757 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
#! /bin/bash
echo "Total Param= $#, PROG: $0, param1 = $1, param2 = $2, param3 = $3";
# Update Git
git pull origin moo
for var in "$@"
do
if [ $var == "front" ];then
cd "/home/sunghyun/MoneyTree/DropTheBit/PartyPeople"
npm run build
cd "./build"
python3 "/home/sunghyun/.local/bin/aws" s3 sync . s3://dropthebit.club/ --acl public-read
elif [ $var == "back" ];then
cd "/home/sunghyun/MoneyTree/DropTheBit/GameDJ"
echo $PWD
docker build -t sunghyun0714/nginx:server .
docker push sunghyun0714/nginx:server
elif [ $var == "lobby" ];then
cd "/home/sunghyun/MoneyTree/DropTheBit/Lobby"
echo $PWD
docker build -t sunghyun0714/nginx:lobby .
docker push sunghyun0714/nginx:lobby
fi
done