add root user?
Some checks failed
ci/woodpecker/push/update-flake Pipeline was successful
ci/woodpecker/manual/update-flake Pipeline failed

This commit is contained in:
Charlotte 🦝 Delenk 2023-04-09 08:25:17 +01:00
parent 70efd11076
commit 2dcc090db9
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -31,9 +31,11 @@ pipeline:
- event: cron - event: cron
- event: manual - event: manual
git-push: git-push:
image: nixery.dev/shell/openssh/git/gnupg image: nixery.dev/shell/openssh/gitfull/git-lfs/gnupg
commands: commands:
- mkdir ~/.ssh - groupadd -g 0 root
- useradd -u 0 -g root -d $HOME root
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_ed25519 - echo "$SSH_KEY" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519
- echo "git.chir.rs ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQ77jA9S5qXDFGPLZRsC++AtxiXXeF8gVbkLlglx0GQ" > ~/.ssh/known_hosts - echo "git.chir.rs ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQ77jA9S5qXDFGPLZRsC++AtxiXXeF8gVbkLlglx0GQ" > ~/.ssh/known_hosts