From e933e0a50adb3a3223a69ec378e98cc1ebce2561 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Tue, 22 Aug 2023 16:36:02 +0200 Subject: [PATCH] Add ip to known hosts --- .gitlab/ci/build_release_jobs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab/ci/build_release_jobs.yml b/.gitlab/ci/build_release_jobs.yml index f63e0743..928ce8ff 100644 --- a/.gitlab/ci/build_release_jobs.yml +++ b/.gitlab/ci/build_release_jobs.yml @@ -53,7 +53,9 @@ release_job: - python3 Tools/create_sha512.py # 2. Connect and handle the folder - echo "Managing remote folder" - - apt-get update && apt-get install -y sshpass ssh + - apt update + - apt install -y sshpass ssh + - ssh-keyscan 91.204.46.10 >> ~/.ssh/known_hosts - sshpass -p $GETSP_PASSWORD ssh $GETSP_USERNAME@91.204.46.10 "rm -rf /getsp.de/$CI_COMMIT_TAG; mkdir /getsp.de/$CI_COMMIT_TAG;" # 3. Upload files to the remote folder - echo "Uploading files"