fix
This commit is contained in:
parent
61b7805b4d
commit
1e6c15f28c
1 changed files with 6 additions and 5 deletions
11
.drone.yml
11
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue