2020-11-06 22:55:20 +00:00
|
|
|
image_name := aiogram/telegram-bot-api
|
|
|
|
image_tag := $(shell date +%Y%m%d)
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
2023-10-01 13:55:11 +00:00
|
|
|
rm -rf telegram-bot-api
|
|
|
|
git clone --recursive https://github.com/tdlib/telegram-bot-api.git
|
2023-10-01 14:06:48 +00:00
|
|
|
docker build -t $(image_name):$(image_tag) --build-arg nproc=$(shell nproc) .
|
2020-11-06 22:55:20 +00:00
|
|
|
docker tag $(image_name):$(image_tag) $(image_name):latest
|
|
|
|
|
|
|
|
.PHONY: publish
|
|
|
|
publish:
|
|
|
|
docker push $(image_name):$(image_tag)
|
|
|
|
docker push $(image_name):latest
|
|
|
|
|
2020-11-12 20:02:13 +00:00
|
|
|
.PHONY: release
|
2020-11-06 22:55:20 +00:00
|
|
|
release: update build publish
|