Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. NAME=helmbe
  2. VERSION=latest
  3. BUILD_TIME := $(shell date "+%F %T")
  4. COMMIT_SHA1 := $(shell git rev-parse HEAD)
  5. AUTHOR := $(shell git show -s --format='%an')
  6. .PHONY: idctest sxkj
  7. all:
  8. idctest:
  9. @docker build --target image-idctest -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):idctest .
  10. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):idctest
  11. idcprod:
  12. @docker build --target image-idcprod -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):idcprod .
  13. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):idcprod
  14. sxkj:
  15. @docker build --target image-sxkj -t SXKJ:32775/$(NAME):sxkj .
  16. @docker push SXKJ:32775/$(NAME):sxkj
  17. txtest:
  18. @docker build --target image-txtest -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest .
  19. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest
  20. txprod:
  21. @docker build --target image-txprod -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod .
  22. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod
  23. rsync:
  24. @rsync -azP --exclude ".*/" --exclude "tmp/" --exclude "dag-jupyter/vendor/" `pwd` sxkj@192.168.199.109:/home/sxkj/zhangli/