ci : skip container re-tagging when Require Docker is disabled (#30008)

Assisted-by: pi:llama.cpp/Qwen3.8-Flash-Next
This commit is contained in:
Georgi Gerganov authored and GitHub committed 2026-10-05 21:22:08 +03:00
1 parent 8345f33395
commit c250304960
2 files changed
+14 -4

No files matched your search

+3 -2
View File
@@ -8,7 +8,8 @@
# GH_TOKEN, GITHUB_REPOSITORY, GITHUB_OUTPUT
# RELEASE_BRANCH: when set, HEAD must belong to origin/RELEASE_BRANCH and must
# not be older than 3 days from the branch HEAD (skipped when unset)
# REQUIRE_DOCKER: set to "false" to skip the container image check (default: true)
# REQUIRE_DOCKER: set to "false" to skip the container image check and the
# release re-tagging of the nightly images in make-release.yml (default: true)
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -128,7 +129,7 @@ if [[ -z "${NIGHTLY_TAG}" ]]; then
elif [[ -z "${GITHUB_REPOSITORY:-}" ]]; then
echo "Warning: GITHUB_REPOSITORY not set - skipping container image check (local run)"
elif [[ "${REQUIRE_DOCKER:-true}" != "true" ]]; then
echo "Require Docker is disabled - skipping container image check"
echo "Require Docker is disabled - skipping container image check and re-tagging"
else
CONTAINER_REPO="${GITHUB_REPOSITORY,,}" # lower-case owner/repo for ghcr.io
GHCR_TOKEN="$(curl -fsSL \