From cab1c8e305abfdb323507602b9b4def8be259446 Mon Sep 17 00:00:00 2001 From: Ciapa Date: Sun, 16 Apr 2023 20:21:30 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 099eda9..58a3e6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,8 +49,6 @@ check updates: - eval "$(ssh-agent -s)" - chmod 0600 $SSH_UPDATE_KEY - ssh-add $SSH_UPDATE_KEY - - mkdir -p ~/.ssh - - echo "git.lewd.wtf ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFwrxReUiOwvUq6ZwvsVVZiJbIGhNrfgwMrEXKEW/2t4" > ~/.ssh/known_hosts - git config --global user.name "NixOS Flake Update" - git config --global user.email "git@lewd.wtf" - git remote rm origin && git remote add origin "git@git.lewd.wtf:${CI_PROJECT_PATH}.git" @@ -61,7 +59,7 @@ check updates: - git checkout -b flakes_update - git add flake.lock - git commit -m 'Update NixOS Flakes' - - git push -f --set-upstream origin flakes_update -o merge_request.create + - GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push -f --set-upstream origin flakes_update -o merge_request.create rules: - if: $CI_PIPELINE_SOURCE == "schedule"