release_docker_push.bat 937 B

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