ci: use podman to login on the CI registry

The CI registry contains several container images that can be pulled
instead of using Docker Hub.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-11-17 10:41:23 +01:00 committed by mergify[bot]
parent a8a6ef27a6
commit b5123e6134

View File

@ -99,7 +99,7 @@ node('cico-workspace') {
def base_image = ssh 'source /opt/build/go/src/github.com/ceph/ceph-csi/build.env && echo ${BASE_IMAGE}'
withCredentials([usernamePassword(credentialsId: 'container-registry-auth', usernameVariable: 'CREDS_USER', passwordVariable: 'CREDS_PASSWD')]) {
ssh "podman login --username=${CREDS_USER} --password='${CREDS_PASSWD}'"
ssh "podman login --username=${CREDS_USER} --password='${CREDS_PASSWD}' ${ci_registry}"
}
// base_image is like ceph/ceph:v15