VERSION:=$(shell date +%y%m.%d.%H%M)
.PHONY: docker
docker:
	docker build --pull -t registry.yandex.net/mail/sre/duty:$(VERSION) .
	docker push registry.yandex.net/mail/sre/duty:$(VERSION)

.PHONY: deploy
deploy: docker
	sed -i "s~tag: .*~tag: $(VERSION)~" spec.yaml
	ya dctl put stage spec.yaml
	echo ""
	echo "https://yd.yandex-team.ru/stages/mail_sre"
	echo ""
