startup.bash 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. set -e
  2. # cd /root/temp/svn/Publish/DevOps2/github-bash;bash startup.bash;
  3. #---------------------------------------------------------------------
  4. # args
  5. args_="
  6. export APPNAME=xxxxxx
  7. export DOCKER_USERNAME=serset
  8. export DOCKER_PASSWORD=xxxxxx
  9. export NUGET_SERVER=https://api.nuget.org/v3/index.json
  10. export NUGET_KEY=xxxxxx
  11. export GIT_SSH_SECRET=xxxxxx
  12. # "
  13. #----------------------------------------------
  14. # cur path
  15. curPath=$PWD
  16. cd $curPath/../../..
  17. export basePath=$PWD
  18. cd $curPath
  19. # export basePath=/root/temp/svn
  20. #----------------------------------------------
  21. echo '#1 build'
  22. cd $basePath/Publish/DevOps2/build-bash; bash startup.bash;
  23. cd $basePath/Publish/DevOps2/build-bash; bash 40.Station-publish-multiple.bash;
  24. #----------------------------------------------
  25. echo '#2 release-bash'
  26. cd $basePath/Publish/DevOps2/release-bash; bash startup.bash;
  27. #----------------------------------------------
  28. echo "#3 get appVersion"
  29. cd $basePath/Publish/DevOps2/build-bash; source 19.get-app-version.bash;
  30. #----------------------------------------------
  31. echo "#4 bash"
  32. cd $curPath
  33. for file in *.sh
  34. do
  35. echo "-----------------------------------------------------------------"
  36. echo "[$(date "+%H:%M:%S")]" sh $file
  37. sh $file
  38. done