Add basic drone upstreaming config
This commit is contained in:
parent
41b72dfe1c
commit
e7091e1de1
19
.drone.yml
19
.drone.yml
|
@ -4,20 +4,21 @@ name: api
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Sync upstream and try PR"
|
- name: "Sync upstream and try PR"
|
||||||
image: docker.b12f.io/pub-solar/minimal-git:latest
|
image: nixery.dev/git/tea/shell
|
||||||
settings:
|
|
||||||
registry: docker.b12f.io
|
|
||||||
repo: docker.b12f.io/pub-solar/minimal-git
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
environment:
|
environment:
|
||||||
GITEA_SSH_KEY:
|
GITEA_SSH_KEY:
|
||||||
from_secret: gitea_ssh_key
|
from_secret: gitea_ssh_key
|
||||||
commands:
|
commands:
|
||||||
- echo $GITEA_SSH_KEY > ~/.ssh/id_rsa
|
- 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
|
- git clone -b core git@git.b12f.io:pub-solar/os
|
||||||
|
- cd os
|
||||||
- git remote add devos https://github.com/divnix/devos.git
|
- git remote add devos https://github.com/divnix/devos.git
|
||||||
- git fetch --all
|
- git fetch --all
|
||||||
- git rebase devos/core
|
- git merge devos/core
|
||||||
|
- git push origin core
|
||||||
|
|
Loading…
Reference in a new issue