Fix issues with pushing to gitlab
This commit is contained in:
parent
a5eb322060
commit
c2fa76fa26
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue