-
Notifications
You must be signed in to change notification settings - Fork 331
/
release_docker.bat
44 lines (28 loc) · 1.04 KB
/
release_docker.bat
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
echo off
call setEnvVars.bat
docker -v
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
rem call Set-ExecutionPolicy RemoteSigned -Scope Process
cd ./maxkey-webs/maxkey-web-maxkey
call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey .
rem maxkey:latest
rem push to docker hub
call docker push %MXK_REPOSITORY%/maxkey
rem maxkey:$version
call docker tag %MXK_REPOSITORY%/maxkey %MXK_REPOSITORY%/maxkey:%MXK_VERSION%
rem push to docker hub
call docker push %MXK_REPOSITORY%/maxkey:%MXK_VERSION%
cd ../../
cd ./maxkey-webs/maxkey-web-mgt
call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-mgt .
rem maxkey-mgt:latest
rem push to docker hub
call docker push %MXK_REPOSITORY%/maxkey-mgt
rem maxkey-mgt:$version
call docker tag %MXK_REPOSITORY%/maxkey-mgt %MXK_REPOSITORY%/maxkey-mgt:%MXK_VERSION%
rem push to docker hub
call docker push %MXK_REPOSITORY%/maxkey-mgt:%MXK_VERSION%
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
pause