IMAGE := registry.yandex.net/mail/tools/qnductor
VERSION := $(shell date +%Y%m%d-%H%M)

build:
	docker build --network host -t $(IMAGE):$(VERSION) .
	docker push $(IMAGE):$(VERSION)
	sed -i 's/tag:.*$$/tag: $(VERSION)/g' spec.yaml
	ya dctl put stage spec.yaml
