Add api-5.1 tag.

This commit is contained in:
Lukasz Raczylo 2021-04-06 21:20:20 +01:00
parent 169952b0c9
commit 8dd85a6793
No known key found for this signature in database
GPG Key ID: 4C68D09621D47E6B
2 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,8 @@ jobs:
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest" TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi 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} echo ::set-output name=tags::${TAGS}
# lowercase the branch name # lowercase the branch name
BRANCH=$(echo ${GITHUB_REF##*/} | tr '[A-Z]' '[a-z]') BRANCH=$(echo ${GITHUB_REF##*/} | tr '[A-Z]' '[a-z]')

View File

@ -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. 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. 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 ## How to use the image