Fix issues with pushing to gitlab

This commit is contained in:
Ciapa 2023-04-16 19:59:50 +00:00
parent a5eb322060
commit c2fa76fa26
1 changed files with 2 additions and 4 deletions

View File

@ -49,10 +49,8 @@ check updates:
- eval "$(ssh-agent -s)" - eval "$(ssh-agent -s)"
- chmod 0600 $SSH_UPDATE_KEY - chmod 0600 $SSH_UPDATE_KEY
- ssh-add $SSH_UPDATE_KEY - ssh-add $SSH_UPDATE_KEY
- mkdir -p ~/.ssh - mkdir -p ~/.ssh && touch ~/.ssh/known_hosts
- chmod 700 ~/.ssh
- ssh-keyscan git.lewd.wtf >> ~/.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.name "NixOS Flake Update"
- git config --global user.email "git@lewd.wtf" - git config --global user.email "git@lewd.wtf"
- git remote rm origin && git remote add origin "git@git.lewd.wtf:${CI_PROJECT_PATH}.git" - 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 - nix flake update
# Push changes # Push changes
- git checkout -b flakes_update - git checkout -b flakes_update
- git add . - git add flake.lock
- git commit -m 'Update NixOS Flakes' - git commit -m 'Update NixOS Flakes'
- git push --set-upstream origin flakes_update -o merge_request.create - git push --set-upstream origin flakes_update -o merge_request.create
rules: rules: