post.sh 414 B

12345678910111213141516
  1. #!/bin/sh
  2. groupId=com.uas.platform
  3. artifactId=mall-ssr
  4. packaging=tgz
  5. version=1.0.0
  6. repo_uri='http://10.10.100.23:23004/v1/artifact'
  7. basepath=$(cd `dirname $0`; pwd)
  8. buildfile=$basepath/dist.tgz
  9. cnpm install
  10. #npm run build
  11. tar -czf $buildfile .
  12. curl -H "Expect:" -F "groupId=$groupId" -F "artifactId=$artifactId" -F "packaging=$packaging" -F "version=$version" -F "file=@$buildfile" $repo_uri
  13. rm -rf $buildfile