From: Dan Mick Date: Wed, 2 Oct 2024 23:02:00 +0000 (-0700) Subject: ceph-dev-new-build/build/setup_rpm: add podman login X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2280%2Fhead;p=ceph-build.git ceph-dev-new-build/build/setup_rpm: add podman login ceph.git's build.sh does not handle authentication in its latest version, but assumes it's been done. Add the authentication step (podman login) here, in setup_rpm, with the side benefit that it'll fail faster if the credentials are incorrect. Signed-off-by: Dan Mick --- diff --git a/ceph-dev-new-build/build/setup_rpm b/ceph-dev-new-build/build/setup_rpm index c52bf290a..0c130940d 100644 --- a/ceph-dev-new-build/build/setup_rpm +++ b/ceph-dev-new-build/build/setup_rpm @@ -44,6 +44,10 @@ pwd setup_rpm_build_deps +if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; then + podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD $CONTAINER_REPO_HOSTNAME/$CONTAINER_REPO_ORGANIZATION +fi + cd $WORKSPACE pkgs=( "chacractl>=0.0.21" )