docker-auto-push.sh 717 B

1234567
  1. #!/bin/sh
  2. git pull
  3. docker build -t registry-platform.linkerplus.com/huzhou/web-builder:1.0.0 -f Dockerfile.builder . && docker push registry-platform.linkerplus.com/huzhou/web-builder:1.0.0
  4. rm -rf ./dist
  5. docker run --rm -i --user $(id -u) -v $(pwd):/opt/web registry-platform.linkerplus.com/huzhou/web-builder:1.0.0 /bin/sh -c "npm --registry https://registry.npm.taobao.org install && npm rebuild node-sass && npm run build"
  6. docker build -t registry-platform.linkerplus.com/huzhou/web-dev:1.0.0 -f Dockerfile.dev . && docker push registry-platform.linkerplus.com/huzhou/web-dev:1.0.0
  7. docker build -t registry-platform.linkerplus.com/huzhou/web:1.0.0 . && docker push registry-platform.linkerplus.com/huzhou/web:1.0.0