mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-22 06:57:52 +00:00
Parse current server version
This commit is contained in:
parent
51ef76ad13
commit
d6b4651392
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
@ -33,6 +33,11 @@ jobs:
|
|||||||
id: current-time
|
id: current-time
|
||||||
with:
|
with:
|
||||||
format: YYYYMMDD
|
format: YYYYMMDD
|
||||||
|
- name: Set version
|
||||||
|
env:
|
||||||
|
TG_SERVER_VERSION: $(cat telegram-bot-api/CMakeLists.txt | grep TelegramBotApi | cut -d " " -f3)
|
||||||
|
run: |
|
||||||
|
echo "Parsed version: ${TG_SERVER_VERSION}"
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@ -43,3 +48,4 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
aiogram/telegram-bot-api:latest
|
aiogram/telegram-bot-api:latest
|
||||||
aiogram/telegram-bot-api:${{ steps.current-time.outputs.formattedTime }}
|
aiogram/telegram-bot-api:${{ steps.current-time.outputs.formattedTime }}
|
||||||
|
aiogram/telegram-bot-api:${{ env.TG_SERVER_VERSION }}
|
||||||
|
Loading…
Reference in New Issue
Block a user