This commit is contained in:
Benjamin Bädorf 2021-06-14 22:41:55 +02:00
parent 61b7805b4d
commit 1e6c15f28c
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -8,15 +8,15 @@ steps:
environment:
GITEA_SSH_KEY:
from_secret: gitea_ssh_key
GIT_SSH_COMMAND: ssh -v
HOME: /root
commands:
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- mkdir -p ~/.ssh
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
- echo "Host git.b12f.io" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config
- chmod -R 600 ~/.ssh
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- git clone -b devos git@git.b12f.io:pub-solar/os
- cd os
- git remote add devos https://github.com/divnix/devos.git
@ -34,14 +34,15 @@ steps:
environment:
GITEA_SSH_KEY:
from_secret: gitea_ssh_key
HOME: /root
commands:
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- mkdir -p ~/.ssh
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
- echo "Host git.b12f.io" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config
- chmod -R 600 ~/.ssh
# This is a hack because nixery containers contain no passwd file, which openssh wants to read
- echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd
- git clone -b core git@git.b12f.io:pub-solar/os
- cd os
- git fetch