os/.drone.yml

25 lines
609 B
YAML

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