2021-05-29 20:21:58 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: api
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Sync upstream and try PR"
|
2021-06-14 21:02:54 +02:00
|
|
|
image: nixery.dev/git/tea/shell
|
2021-05-29 20:21:58 +02:00
|
|
|
environment:
|
|
|
|
GITEA_SSH_KEY:
|
|
|
|
from_secret: gitea_ssh_key
|
|
|
|
commands:
|
|
|
|
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
2021-06-14 21:02:54 +02:00
|
|
|
- echo <<EOF
|
|
|
|
Host git.b12f.io
|
|
|
|
Port 2222
|
|
|
|
User git
|
|
|
|
HostName git.b12f.io
|
|
|
|
EOF >> ~/.ssh/config
|
2021-05-29 20:21:58 +02:00
|
|
|
- git clone -b core git@git.b12f.io:pub-solar/os
|
2021-06-14 21:02:54 +02:00
|
|
|
- cd os
|
2021-05-29 20:21:58 +02:00
|
|
|
- git remote add devos https://github.com/divnix/devos.git
|
|
|
|
- git fetch --all
|
2021-06-14 21:02:54 +02:00
|
|
|
- git merge devos/core
|
|
|
|
- git push origin core
|