mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-24 17:19:19 +00:00
20 lines
425 B
Makefile
20 lines
425 B
Makefile
image_name := aiogram/telegram-bot-api
|
|
image_tag := $(shell date +%Y%m%d)
|
|
|
|
.PHONY: update
|
|
update:
|
|
git submodule -q foreach git pull -q origin master
|
|
|
|
.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: release
|
|
release: update build publish
|