From: Frank Brehm Date: Mon, 20 Dec 2021 17:16:02 +0000 (+0100) Subject: Trying to fix .gitlab-ci.yml X-Git-Tag: 0.4.1~4^2~3 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=4cd9d3e42260773dae6466262f15ff37622ad137;p=pixelpark%2Fpp-admin-tools.git Trying to fix .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9603a3f..7e4c5ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -386,16 +386,14 @@ Sign EL 8 packages: - 'echo -e "YUM_REPO_DIR: ${YUM_REPO_DIR}"' - 'mkdir -pv "${HOME}/.ssh"' - 'chmod -v 0700 "${HOME}/.ssh"' - - '/bin/echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/authorized_keys"' - - 'chmod -v 0600 "${HOME}/.ssh/authorized_keys"' + - '/bin/echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/id_rsa"' + - 'chmod -v 0600 "${HOME}/.ssh/id_rsa"' - 'ls -lA --color=always "${HOME}/.ssh"' -# - | -# 'echo "Ensuring ${HOME}/.ssh/authorized_keys ..."' -# 'mkdir -pv "${HOME}/.ssh"' -# 'chmod -v 0700 "${HOME}/.ssh"' -# 'echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/authorized_keys"' -# 'chmod -v 0600 "${HOME}/.ssh/authorized_keys"' -# 'ls -lA "${HOME}/.ssh"' + - | + if [[ -f "${HOME}/.ssh/config" ]] ; then + echo "Content of ${HOME}/.ssh/config:" + cat "${HOME}/.ssh/config" + fi after_script: - rm -rf rpmdir environment: