fix: Make ssh and config directories and set correct permissions first
This commit is contained in:
parent
75be5446ab
commit
46e42eb1c4
|
@ -9,6 +9,7 @@ steps:
|
|||
GITEA_SSH_KEY:
|
||||
from_secret: gitea_ssh_key
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
||||
- echo <<EOF
|
||||
Host git.b12f.io
|
||||
|
@ -16,6 +17,7 @@ steps:
|
|||
User git
|
||||
HostName git.b12f.io
|
||||
EOF >> ~/.ssh/config
|
||||
- chmod -R 600 ~/.ssh
|
||||
- git clone -b devos git@git.b12f.io:pub-solar/os
|
||||
- cd os
|
||||
- git remote add devos https://github.com/divnix/devos.git
|
||||
|
@ -34,6 +36,7 @@ steps:
|
|||
GITEA_SSH_KEY:
|
||||
from_secret: gitea_ssh_key
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
||||
- echo <<EOF
|
||||
Host git.b12f.io
|
||||
|
@ -41,13 +44,14 @@ steps:
|
|||
User git
|
||||
HostName git.b12f.io
|
||||
EOF >> ~/.ssh/config
|
||||
- chmod -R 600 ~/.ssh
|
||||
- git clone -b core git@git.b12f.io:pub-solar/os
|
||||
- cd os
|
||||
- git fetch
|
||||
- git merge devos
|
||||
- git push origin core
|
||||
|
||||
- name: "Notify Success"
|
||||
- name: "Notify success"
|
||||
image: plugins/matrix
|
||||
when:
|
||||
status:
|
||||
|
@ -74,10 +78,11 @@ steps:
|
|||
TEA_CONFIG:
|
||||
from_secret: tea_config
|
||||
commands:
|
||||
- mkdir -p ~/.config/tea
|
||||
- echo $TEA_CONFIG > ~/.config/tea/config.yml
|
||||
- tea pulls create --base core --head devos
|
||||
|
||||
- name: notify
|
||||
- name: Notify failure
|
||||
image: plugins/matrix
|
||||
when:
|
||||
status:
|
||||
|
|
Loading…
Reference in a new issue