Skip to content
Snippets Groups Projects
Commit 3a2a23e7 authored by drebs's avatar drebs
Browse files

Fix SSH key injection on GitLab Runner image creation

parent 63d226d7
Branches mail
No related tags found
1 merge request!30OpenDKIM and Schleuder
Pipeline #86214 passed
...@@ -13,7 +13,7 @@ virt-builder debian-10 \ ...@@ -13,7 +13,7 @@ virt-builder debian-10 \
--run-command 'useradd -m -p "" gitlab-runner -s /bin/bash' \ --run-command 'useradd -m -p "" gitlab-runner -s /bin/bash' \
--install gitlab-runner,git,git-lfs,openssh-server \ --install gitlab-runner,git,git-lfs,openssh-server \
--run-command "git lfs install --skip-repo" \ --run-command "git lfs install --skip-repo" \
--ssh-inject gitlab-runner:file:/root/.ssh/id_rsa.pub \ --ssh-inject gitlab-runner:file:/root/.ssh/id_ed25519.pub \
--run-command "echo 'gitlab-runner ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" \ --run-command "echo 'gitlab-runner ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" \
--run-command "sed -E 's/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/' -i /etc/default/grub" \ --run-command "sed -E 's/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/' -i /etc/default/grub" \
--run-command "grub-mkconfig -o /boot/grub/grub.cfg" \ --run-command "grub-mkconfig -o /boot/grub/grub.cfg" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment