fix: Fix port for git automated cloning and upstreaming

This commit is contained in:
Benjamin Bädorf 2021-06-14 21:47:38 +02:00
parent 46e42eb1c4
commit 9b811eea97
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -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