release_docker.bat 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. echo off
  2. call setEnvVars.bat
  3. docker -v
  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-webs/maxkey-web-maxkey
  8. call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey .
  9. rem maxkey:latest
  10. rem push to docker hub
  11. call docker push %MXK_REPOSITORY%/maxkey
  12. rem maxkey:$version
  13. call docker tag %MXK_REPOSITORY%/maxkey %MXK_REPOSITORY%/maxkey:%MXK_VERSION%
  14. rem push to docker hub
  15. call docker push %MXK_REPOSITORY%/maxkey:%MXK_VERSION%
  16. cd ../../
  17. cd ./maxkey-webs/maxkey-web-mgt
  18. call docker build -f Dockerfile -t %MXK_REPOSITORY%/maxkey-mgt .
  19. rem maxkey-mgt:latest
  20. rem push to docker hub
  21. call docker push %MXK_REPOSITORY%/maxkey-mgt
  22. rem maxkey-mgt:$version
  23. call docker tag %MXK_REPOSITORY%/maxkey-mgt %MXK_REPOSITORY%/maxkey-mgt:%MXK_VERSION%
  24. rem push to docker hub
  25. call docker push %MXK_REPOSITORY%/maxkey-mgt:%MXK_VERSION%
  26. set END_TIME="%date:~0,10% %time:~0,2%:%time:~3,5%"
  27. echo Build Release start at %START_TIME% complete at %END_TIME%.
  28. pause