From 6b4dffbd7906c30c982b5c7c35370b729cef9992 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 17 Nov 2020 13:20:10 +0100 Subject: [PATCH] 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 --- mini-e2e.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-e2e.groovy b/mini-e2e.groovy index a5c5a4c22..6aac9d4e4 100644 --- a/mini-e2e.groovy +++ b/mini-e2e.groovy @@ -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