drone: fix cron job for upstream syncing

This commit is contained in:
teutat3s 2021-10-11 23:45:33 +02:00
parent b98637853e
commit 618af9ad3d
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -4,25 +4,6 @@ type: docker
name: Upstreaming
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"
image: alpine/git
when:
@ -35,6 +16,8 @@ steps:
from_secret: gitea_ssh_key
commands:
- ./.drone/setup_ssh.sh
- 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 checkout origin/devos
- git merge -X theirs devos/main