mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-05-05 04:16:17 +00:00
Update docker-registry.yml
This commit is contained in:
7
.github/workflows/docker-registry.yml
vendored
7
.github/workflows/docker-registry.yml
vendored
@@ -34,7 +34,6 @@ jobs:
|
||||
driver-opts: |
|
||||
network=host
|
||||
|
||||
# Логинимся только если это НЕ PR или PR из того же репозитория
|
||||
- name: Log in to Container Registry
|
||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: docker/login-action@v3
|
||||
@@ -53,13 +52,13 @@ jobs:
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
echo "🏷️ Собираем релизную версию: $VERSION"
|
||||
elif [[ $GITHUB_REF == refs/heads/main ]]; then
|
||||
VERSION="v2.2.5"
|
||||
VERSION="v2.2.6"
|
||||
echo "🚀 Собираем версию из main: $VERSION"
|
||||
elif [[ $GITHUB_REF == refs/heads/dev ]]; then
|
||||
VERSION="v2.2.5-dev-$(git rev-parse --short HEAD)"
|
||||
VERSION="v2.2.6-dev-$(git rev-parse --short HEAD)"
|
||||
echo "🧪 Собираем dev версию: $VERSION"
|
||||
else
|
||||
VERSION="v2.2.5-pr-$(git rev-parse --short HEAD)"
|
||||
VERSION="v2.2.6-pr-$(git rev-parse --short HEAD)"
|
||||
echo "🔀 Собираем PR версию: $VERSION"
|
||||
fi
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user