From 2dcc090db991ac770bc338555ad119065299bdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 9 Apr 2023 08:25:17 +0100 Subject: [PATCH] add root user? --- .woodpecker/update-flake.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.woodpecker/update-flake.yaml b/.woodpecker/update-flake.yaml index cc35b46..185af68 100644 --- a/.woodpecker/update-flake.yaml +++ b/.woodpecker/update-flake.yaml @@ -31,9 +31,11 @@ pipeline: - event: cron - event: manual git-push: - image: nixery.dev/shell/openssh/git/gnupg + image: nixery.dev/shell/openssh/gitfull/git-lfs/gnupg commands: - - mkdir ~/.ssh + - groupadd -g 0 root + - useradd -u 0 -g root -d $HOME root + - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - echo "git.chir.rs ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQ77jA9S5qXDFGPLZRsC++AtxiXXeF8gVbkLlglx0GQ" > ~/.ssh/known_hosts