From: Dan Mick Date: Fri, 24 Jan 2025 19:00:28 +0000 (-0800) Subject: container/build.sh: don't require repo creds on NO_PUSH X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0140fc5c2d85a49e30e20ce73737c6ec4d1d8a00;p=ceph.git container/build.sh: don't require repo creds on NO_PUSH Signed-off-by: Dan Mick (cherry picked from commit a745e07e7ee2de76f59b3798d2814bb6ba8f9cd2) --- diff --git a/container/build.sh b/container/build.sh index 831cb63d58de0..119146a2e1b90 100755 --- a/container/build.sh +++ b/container/build.sh @@ -67,10 +67,12 @@ fi : "${BRANCH:?}" : "${CEPH_SHA1:?}" : "${ARCH:?}" -: "${CONTAINER_REPO_HOSTNAME:?}" -: "${CONTAINER_REPO_ORGANIZATION:?}" -: "${CONTAINER_REPO_USERNAME:?}" -: "${CONTAINER_REPO_PASSWORD:?}" +if [[ ${NO_PUSH} != "true" ]] ; then + : "${CONTAINER_REPO_HOSTNAME:?}" + : "${CONTAINER_REPO_ORGANIZATION:?}" + : "${CONTAINER_REPO_USERNAME:?}" + : "${CONTAINER_REPO_PASSWORD:?}" +fi if [[ ${CI_CONTAINER} != "true" ]] ; then : "${VERSION:?}"; fi # check for valid repo auth (if pushing)