startup.bash 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. set -e
  2. # cd /root/temp/svn/Publish/DevOps/release-bash;bash startup.bash;
  3. #---------------------------------------------------------------------
  4. # args
  5. args_="
  6. export APPNAME=xxxxxx
  7. export DOCKER_ImagePrefix=serset/
  8. export DOCKER_USERNAME=serset
  9. export DOCKER_PASSWORD=xxx
  10. export NUGET_SERVER=https://api.nuget.org/v3/index.json
  11. export NUGET_KEY=xxxxxxxxxx
  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 get appVersion"
  22. cd "$curPath/../build-bash"; source 19.get-app-version.bash;
  23. #----------------------------------------------
  24. echo "#2 bash"
  25. cd $curPath
  26. for file in *.sh
  27. do
  28. echo "-----------------------------------------------------------------"
  29. echo "[$(date "+%H:%M:%S")] sh $file"
  30. sh "$file"
  31. done
  32. cd "$curPath"