mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-25 01:21:50 +00:00
18 lines
476 B
Makefile
18 lines
476 B
Makefile
image_name := aiogram/telegram-bot-api
|
|
image_tag := $(shell date +%Y%m%d)
|
|
|
|
.PHONY: build
|
|
build:
|
|
rm -rf telegram-bot-api
|
|
git clone --recursive https://github.com/tdlib/telegram-bot-api.git
|
|
docker build -t $(image_name):$(image_tag) --build-arg nproc=$(shell nproc) .
|
|
docker tag $(image_name):$(image_tag) $(image_name):latest
|
|
|
|
.PHONY: publish
|
|
publish:
|
|
docker push $(image_name):$(image_tag)
|
|
docker push $(image_name):latest
|
|
|
|
.PHONY: release
|
|
release: update build publish
|