From c2fa76fa26ffab463658f14fb3d2adfc13dd5a06 Mon Sep 17 00:00:00 2001 From: Ciapa Date: Sun, 16 Apr 2023 19:59:50 +0000 Subject: [PATCH] Fix issues with pushing to gitlab --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: