telegram-bot-api-build/Makefile
2020-11-07 00:55:20 +02:00

20 lines
430 B
Makefile

image_name := aiogram/telegram-bot-api
image_tag := $(shell date +%Y%m%d)
.PHONY: update
update:
git submodule update --init --recursive --remote --merge
.PHONY: build
build:
docker build -t $(image_name):$(image_tag) .
docker tag $(image_name):$(image_tag) $(image_name):latest
.PHONY: publish
publish:
docker push $(image_name):$(image_tag)
docker push $(image_name):latest
.PHONY: relese
release: update build publish