mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
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:
parent
a8a6ef27a6
commit
b5123e6134
@ -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}'
|
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')]) {
|
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
|
// base_image is like ceph/ceph:v15
|
||||||
|
Loading…
Reference in New Issue
Block a user