diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac7ad9f..0d72c8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,10 +49,8 @@ check updates: - eval "$(ssh-agent -s)" - chmod 0600 $SSH_UPDATE_KEY - ssh-add $SSH_UPDATE_KEY - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh + - mkdir -p ~/.ssh && touch ~/.ssh/known_hosts - ssh-keyscan git.lewd.wtf >> ~/.ssh/known_hosts - - chmod 644 ~/.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" @@ -60,7 +58,7 @@ check updates: - nix flake update # Push changes - git checkout -b flakes_update - - git add . + - git add flake.lock - git commit -m 'Update NixOS Flakes' - git push --set-upstream origin flakes_update -o merge_request.create rules: