fix: Fix port for git automated cloning and upstreaming
This commit is contained in:
parent
46e42eb1c4
commit
9b811eea97
16
.drone.yml
16
.drone.yml
|
@ -11,12 +11,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
||||||
- echo <<EOF
|
- echo "Host git.b12f.io" >> ~/.ssh/config
|
||||||
Host git.b12f.io
|
- echo " Port 2222" >> ~/.ssh/config
|
||||||
Port 2222
|
|
||||||
User git
|
|
||||||
HostName git.b12f.io
|
|
||||||
EOF >> ~/.ssh/config
|
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- git clone -b devos git@git.b12f.io:pub-solar/os
|
- git clone -b devos git@git.b12f.io:pub-solar/os
|
||||||
- cd os
|
- cd os
|
||||||
|
@ -38,12 +34,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
||||||
- echo <<EOF
|
- echo "Host git.b12f.io" >> ~/.ssh/config
|
||||||
Host git.b12f.io
|
- echo " Port 2222" >> ~/.ssh/config
|
||||||
Port 2222
|
|
||||||
User git
|
|
||||||
HostName git.b12f.io
|
|
||||||
EOF >> ~/.ssh/config
|
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- git clone -b core git@git.b12f.io:pub-solar/os
|
- git clone -b core git@git.b12f.io:pub-solar/os
|
||||||
- cd os
|
- cd os
|
||||||
|
|
Loading…
Reference in a new issue