Makefile 842 B

12345678910111213141516171819202122232425
  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. sxkj:
  12. @docker build --target image-sxkj -t SXKJ:32775/$(NAME):sxkj .
  13. @docker push SXKJ:32775/$(NAME):sxkj
  14. txtest:
  15. @docker build --target image-txtest -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest .
  16. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txtest
  17. txprod:
  18. @docker build --target image-txprod -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod .
  19. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod