release_frontend_docker_push.bat 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-web-frontend/maxkey-web-app
  8. rem maxkey-frontend:latest
  9. rem push to docker hub
  10. call docker push %MXK_REPOSITORY%/maxkey-frontend
  11. rem maxkey-frontend:$version
  12. call docker tag %MXK_REPOSITORY%/maxkey-frontend %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
  13. rem push to docker hub
  14. call docker push %MXK_REPOSITORY%/maxkey-frontend:%MXK_VERSION%
  15. cd ../../
  16. cd ./maxkey-web-frontend/maxkey-web-mgt-app
  17. rem maxkey-mgt-frontend:latest
  18. rem push to docker hub
  19. call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend
  20. rem maxkey-mgt-frontend:$version
  21. call docker tag %MXK_REPOSITORY%/maxkey-mgt-frontend %MXK_REPOSITORY%/maxkey-mgt-frontend:%MXK_VERSION%
  22. rem push to docker hub
  23. call docker push %MXK_REPOSITORY%/maxkey-mgt-frontend:%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