Drone: follow new upstream default branch main, cron fixes #30
25
.drone.yml
25
.drone.yml
|
@ -4,6 +4,25 @@ type: docker
|
||||||
name: Upstreaming
|
name: Upstreaming
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Setup git repos and SSH access"
|
||||||
|
image: alpine/git
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- cron
|
||||||
|
cron:
|
||||||
|
- sync-main-with-upstream
|
||||||
|
- sync-b12f-with-main
|
||||||
|
- sync-teutat3s-with-main
|
||||||
|
environment:
|
||||||
|
GITEA_SSH_KEY:
|
||||||
|
from_secret: gitea_ssh_key
|
||||||
|
commands:
|
||||||
|
- ./.drone/setup_ssh.sh
|
||||||
|
- git fetch
|
||||||
|
- git remote add devos git@git.b12f.io:pub-solar/devos
|
||||||
|
- git remote set-url origin git@git.b12f.io:pub-solar/os
|
||||||
|
- git fetch --all
|
||||||
|
|
||||||
- name: "Sync 'devos' branch with upstream"
|
- name: "Sync 'devos' branch with upstream"
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
when:
|
when:
|
||||||
|
@ -16,11 +35,7 @@ steps:
|
||||||
from_secret: gitea_ssh_key
|
from_secret: gitea_ssh_key
|
||||||
commands:
|
commands:
|
||||||
- ./.drone/setup_ssh.sh
|
- ./.drone/setup_ssh.sh
|
||||||
- git fetch
|
- git checkout origin/devos
|
||||||
- git checkout devos
|
|
||||||
- git remote add devos git@git.b12f.io:pub-solar/devos
|
|
||||||
- git remote set-url origin git@git.b12f.io:pub-solar/os
|
|
||||||
- git fetch --all
|
|
||||||
- git merge -X theirs devos/main
|
- git merge -X theirs devos/main
|
||||||
- git push origin devos
|
- git push origin devos
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue