mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-18 02:39:30 +00:00
ci: store results of podman-login in ~/.docker/config.json
Once the ssh command finishes, the runtime directory is removed and the results of "podman login" are lost. By storing the results in the standard Docker configuration file, subsequent "podman pull" commands will be able to re-use the authentication details. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
baac40c136
commit
6b4dffbd79
@ -102,7 +102,7 @@ node('cico-workspace') {
|
||||
).trim()
|
||||
|
||||
withCredentials([usernamePassword(credentialsId: 'container-registry-auth', usernameVariable: 'CREDS_USER', passwordVariable: 'CREDS_PASSWD')]) {
|
||||
ssh "podman login --username=${CREDS_USER} --password='${CREDS_PASSWD}' ${ci_registry}"
|
||||
ssh "podman login --authfile=~/.docker/config.json --username=${CREDS_USER} --password='${CREDS_PASSWD}' ${ci_registry}"
|
||||
}
|
||||
|
||||
// base_image is like ceph/ceph:v15
|
||||
|
Loading…
Reference in New Issue
Block a user