release_frontend_docker.bat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. echo off
  2. set MXK_VERSION=3.5.13
  3. set MXK_REPOSITORY=maxkeytop
  4. set START_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
  5. echo start time %START_TIME%
  6. rem call Set-ExecutionPolicy RemoteSigned -Scope Process
  7. cd ./maxkey-web-frontend/maxkey-web-app
  8. call ng build --base-href /maxkey/
  9. call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-frontend .
  10. call docker push %MXK_REPOSITORY%/maxkey-frontend
  11. call docker tag %MXK_REPOSITORY%/maxkey-frontend %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
  12. call docker push %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
  13. cd ../../
  14. cd ./maxkey-web-frontend/maxkey-web-mgt-app
  15. call ng build --base-href /maxkey-mgt/
  16. call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-mgt-frontend .
  17. call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend
  18. call docker tag %MXK_REPOSITORY%/maxkey-mgt-frontend %MXK_REPOSITORY%/maxkey-mgt-frontend:%MXK_VERSION%
  19. call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend:%MXK_VERSION%
  20. set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
  21. echo Build Release start at %START_TIME% complete at %END_TIME%.
  22. pause