]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Trying to fix .gitlab-ci.yml
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 20 Dec 2021 17:16:02 +0000 (18:16 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 20 Dec 2021 17:16:02 +0000 (18:16 +0100)
.gitlab-ci.yml

index 9603a3f4a3be23fbea8446fa12c80b4d3a2ea5e2..7e4c5ac5704b5e600005c64515f671a573b59b61 100644 (file)
@@ -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: