From: Shraddha Agrawal Date: Fri, 10 Apr 2026 08:40:55 +0000 (+0530) Subject: container/build.sh: fix debug tag overwrite X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66e2d43a7e1b25d5e59e5f92bc27d8e0c2d944aa;p=ceph.git container/build.sh: fix debug tag overwrite This commit fixes an issue when the image is not the base distro, the debug suffix for it is overwritten. This is especially required for crimson debug builds to work for rocky10. Fixes: https://tracker.ceph.com/issues/75952 Signed-off-by: Shraddha Agrawal --- diff --git a/container/build.sh b/container/build.sh index 60c502c9ea5e..51ffcce81f32 100755 --- a/container/build.sh +++ b/container/build.sh @@ -217,6 +217,10 @@ if [[ ${CI_CONTAINER} == "true" ]] ; then if [[ "${fromtag}" != "${default_fromtag}" ]] ; then branch_repo_tag=${repopath}:${BRANCH}-${fromtag} sha1_repo_tag=${repopath}:${CEPH_SHA1}-${fromtag} + if [[ ${FLAVOR} == "debug" ]]; then + branch_repo_tag=${branch_repo_tag}-${FLAVOR} + sha1_repo_tag=${sha1_repo_tag}-${FLAVOR} + fi fi if [[ "${ARCH}" == "arm64" ]] ; then