Add example for syncing repo with upstream (#67) All checks were successful ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add an example of automatic synchronization with an upstream repository. Sorry for the multiple commits, I forgot that I need to make a new branch. Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org> Reviewed-on: #67 Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org> Co-authored-by: Colgrave <hanqixu@disroot.org> Co-committed-by: Colgrave <hanqixu@disroot.org>
This commit is contained in:
parent 472428a7ce
commit 313ce9323e
3 changed files with 26 additions and 0 deletions
| @ -13,6 +13,7 @@ steps: | |||
- woodpecker-cli lint Butane/.woodpecker/butane.yaml | ||||
- woodpecker-cli lint C/ | ||||
- woodpecker-cli lint Docker/ | ||||
- woodpecker-cli lint Git/ | ||||
- woodpecker-cli lint Golang/ | ||||
- woodpecker-cli lint Hugo/ | ||||
- woodpecker-cli lint Idris/ | ||||
| |
24 Git/.woodpecker.yaml Normal file
24
Git/.woodpecker.yaml Normal file | @ -0,0 +1,24 @@ | |||
# Git/.woodpecker.yaml | ||||
# | ||||
# CI step to automatic synchronization with an upstream repository. | ||||
| ||||
when: | ||||
event: [cron, manual] | ||||
cron: 'sync' | ||||
| ||||
steps: | ||||
- name: sync | ||||
image: docker.io/alpine/git | ||||
commands: | ||||
- git remote add upstream https://codeberg.org/<UPSTREAM_REPO> | ||||
- git fetch upstream | ||||
- git checkout main | ||||
- git merge upstream/main | ||||
| ||||
- name: push | ||||
image: docker.io/appleboy/drone-git-push:latest | ||||
settings: | ||||
ssh_key: | ||||
from_secret: ssh_key | ||||
remote: git@codeberg.org:<YOUR_REPO> | ||||
branch: main |
| @ -11,6 +11,7 @@ Pull requests are welcome! | |||
| [C/.woodpecker/meson-android.yaml](C/.woodpecker/meson-android.yaml) | C/C++ | meson + Android NDK | CI for meson-based projects cross-compiling to Android NDK. | | ||||
| [Docker/.woodpecker/kaniko.yaml](Docker/.woodpecker/kaniko.yaml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image | | ||||
| [Docker/.woodpecker/buildx.yaml](Docker/.woodpecker/buildx.yaml) | Dockerfile | [buildx][2] | Build and publish Docker images for multiple architectures on codeberg | | ||||
| [Git/.woodpecker.yaml](Git/.woodpecker.yaml) | --- | --- | CI step to automatic synchronization with an upstream repository. | | ||||
| [Golang/.woodpecker/build.yaml](Golang/.woodpecker/build.yaml) | golang | golang | Simple ci for building and test a Go project | | ||||
| [Golang/.woodpecker/build-docker.yaml](Golang/.woodpecker/build-docker.yaml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub | | ||||
| [Hugo/.woodpecker.yaml](Hugo/.woodpecker.yaml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo | | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue