diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 5399d6c..8b2ffe2 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -52,7 +52,8 @@ jobs: if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then TAGS="$TAGS,${DOCKER_IMAGE}:latest" fi - TAGS="$TAGS,$DOCKER_IMAGE:${{ env.GITHUB_SHA }},$DOCKER_IMAGE:1.0.${{ env.GITHUB_RUN_ID }},$DOCKER_IMAGE:latest" + TG_API_VERSION=$(grep "project(TelegramBotApi" /home/runner/work/tdlib-telegram-bot-api-docker/tdlib-telegram-bot-api-docker/tdlib-telegram-bot-api/CMakeLists.txt | awk '{print $3}') + TAGS="$TAGS,$DOCKER_IMAGE:${{ env.GITHUB_SHA }},$DOCKER_IMAGE:1.0.${{ env.GITHUB_RUN_ID }},$DOCKER_IMAGE:latest,$DOCKER_IMAGE:api-$TG_API_VERSION" echo ::set-output name=tags::${TAGS} # lowercase the branch name BRANCH=$(echo ${GITHUB_REF##*/} | tr '[A-Z]' '[a-z]') diff --git a/README.md b/README.md index 50a5901..8fdc083 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Build will be triggered automatically once a week to produce the latest version I would set it for the daily release but every build takes ~2.5 hours and generates additional costs on my side. Images are versioned in format `1.0.x` where `x` is a build number. +There's additional tag added: `api-5.1` where `5.1` is the version of Telegram API supported by the image. ## How to use the image