From d06033b4d2d3ea92ccda642b151ed2f5f4c08824 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Tue, 12 Sep 2023 10:15:06 +0200 Subject: [PATCH] Fix keys encoding Signed-off-by: Anatolii Bazko --- .ci/openshift-ci/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/openshift-ci/common.sh b/.ci/openshift-ci/common.sh index 54feea6723..1cfe55c15a 100644 --- a/.ci/openshift-ci/common.sh +++ b/.ci/openshift-ci/common.sh @@ -195,8 +195,8 @@ setupSSHKeyPairs() { echo "[INFO] Setup SSH Key Pairs Secret" oc project ${USER_CHE_NAMESPACE} - ENCODED_GIT_PRIVATE_KEY=$(echo -n ${GIT_PRIVATE_KEY} | base64) - ENCODED_GIT_PUBLIC_KEY=$(echo -n ${GIT_PUBLIC_KEY} | base64) + ENCODED_GIT_PRIVATE_KEY=$(echo -n "${GIT_PRIVATE_KEY}" | base64 -w 0) + ENCODED_GIT_PUBLIC_KEY=$(echo -n "${GIT_PUBLIC_KEY}" | base64 -w 0) cat .ci/openshift-ci/ssh-secret.yaml > ssh-secret.yaml # patch the ssh-secret.yaml file