Registry ?= 192.168.1.240
Repository ?= dolphindb

ImageName ?=telegraf-dolphindb
ImageTag ?=1.23.0
DolphinDBOutputImg ?= $(Registry)/$(Repository)/$(ImageName):$(ImageTag)

VERSION=$(shell git rev-parse --short HEAD)

dolphindb-output:  dolphindb-output-build  dolphindb-output-push

dolphindb-output-build:
	docker build --build-arg version=$(VERSION) -t ${DolphinDBOutputImg} -f build/Dockerfile .

dolphindb-output-push:
	docker push ${DolphinDBOutputImg}
