Makefile 381 B

123456789101112131415161718
  1. .PHONY: version
  2. version?=latest
  3. tag=reg.cestong.com.cn/cecf/otel-data-replay:${version}
  4. tagh=reg.home.base/yaywd/otel-data-replay:${version}
  5. docker-build:
  6. docker build . -t ${tag} $(MAKEFLAGS)
  7. docker-push: docker-build
  8. docker push ${tag}
  9. echo ${version} > ./version
  10. docker-build-h:
  11. docker build . -t ${tagh} $(MAKEFLAGS)
  12. docker-push-h: docker-build-h
  13. docker push ${tagh}