From 947c00670d71bb9f22e8481d726c51fb06ca21c7 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 28 Feb 2024 11:07:29 -0500 Subject: [PATCH] set the GIT_SSH_COMMAND so we can use the private key path --- spiffworkflow-backend/bin/clone_process_models | 1 + 1 file changed, 1 insertion(+) diff --git a/spiffworkflow-backend/bin/clone_process_models b/spiffworkflow-backend/bin/clone_process_models index 24a09188..01e717ef 100755 --- a/spiffworkflow-backend/bin/clone_process_models +++ b/spiffworkflow-backend/bin/clone_process_models @@ -35,4 +35,5 @@ if [[ -d "${SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR}/lost+found" ]]; then rm -r "${SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR}/lost+found" fi +export GIT_SSH_COMMAND="ssh -F /dev/null -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH}" git clone -b "$SPIFFWORKFLOW_BACKEND_GIT_SOURCE_BRANCH" "$SPIFFWORKFLOW_BACKEND_GIT_PUBLISH_CLONE_URL" "$SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR"