]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build/build/setup_rpm: add podman login 2280/head
authorDan Mick <dmick@redhat.com>
Wed, 2 Oct 2024 23:02:00 +0000 (16:02 -0700)
committerDan Mick <dmick@redhat.com>
Wed, 2 Oct 2024 23:02:00 +0000 (16:02 -0700)
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 <dmick@redhat.com>
ceph-dev-new-build/build/setup_rpm

index c52bf290a19595b7b4bff506f7516b6ce36c488c..0c130940dbd999c32abdf5c8be3525b956aeb551 100644 (file)
@@ -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" )