docker-compose & docker
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
echo off
|
||||
|
||||
set MXK_VERSION=4.0.2
|
||||
set MXK_REPOSITORY=maxkeytop
|
||||
call setEnvVars.bat
|
||||
|
||||
docker -v
|
||||
|
||||
set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
||||
echo start time %START_TIME%
|
||||
@@ -10,28 +11,36 @@ rem call Set-ExecutionPolicy RemoteSigned -Scope Process
|
||||
|
||||
cd ./maxkey-web-frontend/maxkey-web-app
|
||||
|
||||
rem ng build
|
||||
call ng build --base-href /maxkey/
|
||||
|
||||
call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-frontend .
|
||||
|
||||
rem maxkey-frontend:latest
|
||||
rem push to docker hub
|
||||
call docker push %MXK_REPOSITORY%/maxkey-frontend
|
||||
|
||||
rem maxkey-frontend:$version
|
||||
call docker tag %MXK_REPOSITORY%/maxkey-frontend %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
|
||||
|
||||
rem push to docker hub
|
||||
call docker push %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
|
||||
|
||||
cd ../../
|
||||
|
||||
cd ./maxkey-web-frontend/maxkey-web-mgt-app
|
||||
|
||||
rem ng build
|
||||
call ng build --base-href /maxkey-mgt/
|
||||
|
||||
call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-mgt-frontend .
|
||||
|
||||
rem maxkey-mgt-frontend:latest
|
||||
rem push to docker hub
|
||||
call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend
|
||||
|
||||
rem maxkey-mgt-frontend:$version
|
||||
call docker tag %MXK_REPOSITORY%/maxkey-mgt-frontend %MXK_REPOSITORY%/maxkey-mgt-frontend:%MXK_VERSION%
|
||||
|
||||
rem push to docker hub
|
||||
call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend:%MXK_VERSION%
|
||||
|
||||
set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
|
||||
|
||||
Reference in New Issue
Block a user