forked from axetroy/go-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.s4
23 lines (18 loc) · 806 Bytes
/
.s4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CONNECT [email protected]:22
CD /home/zingy/go-server/
UPLOAD ./bin/admin_server_linux_amd64.tar.gz ./api/
UPLOAD ./bin/user_server_linux_amd64.tar.gz ./api/
UPLOAD ./bin/resource_server_linux_amd64.tar.gz ./api/
UPLOAD ./bin/message_queue_server_linux_amd64.tar.gz ./api/
UPLOAD ./bin/scheduled_server_linux_amd64.tar.gz ./api/
UPLOAD ./bin/customer_service_server_linux_amd64.tar.gz ./api/
CD /home/zingy/go-server/api
RUN tar -xzf admin_server_linux_amd64.tar.gz
RUN tar -xzf user_server_linux_amd64.tar.gz
RUN tar -xzf resource_server_linux_amd64.tar.gz
RUN tar -xzf message_queue_server_linux_amd64.tar.gz
RUN tar -xzf scheduled_server_linux_amd64.tar.gz
RUN tar -xzf customer_service_server_linux_amd64.tar.gz
TRY docker-compose down
TRY docker-compose up -d
RUN echo "------ Deploy Done! ------"