Files
MaxKey/release_docker.bat

45 lines
1.0 KiB
Batchfile
Raw Normal View History

2022-07-28 19:08:55 +08:00
echo off
2021-09-09 17:16:27 +08:00
call setEnvVars.bat
2024-10-01 12:17:56 +08:00
docker -v
2021-09-09 17:16:27 +08:00
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo start time %START_TIME%
2024-10-01 12:17:56 +08:00
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 ../../
2021-09-09 17:16:27 +08:00
2024-10-01 12:17:56 +08:00
cd ./maxkey-webs/maxkey-web-mgt
2021-09-09 17:16:27 +08:00
2024-10-01 12:17:56 +08:00
call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-mgt .
2021-09-09 17:16:27 +08:00
2024-10-01 12:17:56 +08:00
rem maxkey-mgt:latest
rem push to docker hub
call docker push %MXK_REPOSITORY%/maxkey-mgt
2021-09-09 17:16:27 +08:00
2024-10-01 12:17:56 +08:00
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%
2021-09-09 17:16:27 +08:00
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
echo Build Release start at %START_TIME% complete at %END_TIME%.
2024-10-01 12:17:56 +08:00
pause