35 Commits

Author SHA1 Message Date
mononym
cea04366c7 pdoc API documentation build and publish CI (#18)
Hi. Here’s one more Python example. It makes use of [pdoc](https://pdoc.dev) in order to generate the API documentation for python modules. The docs are then pushed on a pages branch and normally served by codeberg pages.

Co-authored-by: mononym <mononym@riseup.net>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/18
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: mononym <mononym@noreply.codeberg.org>
Co-committed-by: mononym <mononym@noreply.codeberg.org>
2024-01-24 12:52:26 +00:00
Kamila Borowska
32b68e6acc Version plugin-codeberg-pages-deploy (#36)
This ensures that the provided example won't use version 2 of the plugin if it were to make breaking changes.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/36
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Kamila Borowska <kamila@borowska.pw>
Co-committed-by: Kamila Borowska <kamila@borowska.pw>
2024-01-01 16:10:43 +00:00
Kamila Borowska
a0ae9079ab Use plugin-codeberg-pages-deploy in mkdocs example (#35)
I've made a plugin to ease deployment of Codeberg Pages, and figured I would update one of examples to use it.

Tested that this works on https://ci.codeberg.org/repos/12946/pipeline/3.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/35
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Kamila Borowska <kamila@borowska.pw>
Co-committed-by: Kamila Borowska <kamila@borowska.pw>
2023-12-30 09:49:10 +00:00
Stefano Volpe
d85e697118 Hugo workflow: use CI_COMMIT_SHA in commit message (#34)
Within the Hugo workflow, the commit message was built interpolating the `CI_BUILD_CREATED` builtin Woodpecker variable. I believe  it is not defined (anymore?): https://woodpecker-ci.org/docs/usage/environment. The most similar thing I have found is `CI_PIPELINE_CREATED`, but I can't get any value beside 0 out of it when using this pipeline. So I propose we use `CI_COMMIT_SHA`, which I already tested in one of my personal projects: https://ci.codeberg.org/repos/12701/pipeline/19/1.
I believe `CI_COMMIT_SHA` is the ideal unique identifier for pipeline triggered by push actions.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/34
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Stefano Volpe <stefano.volpe@student.uva.nl>
Co-committed-by: Stefano Volpe <stefano.volpe@student.uva.nl>
2023-11-03 06:39:15 +00:00
Andre601
18bcfb560c Add "[SKIP CI]" to jekyll example commit message (#32)
When this example is used will a separate run be triggered in Codeberg CI, which only results in a failed run that never was needed.

I first tried with a file configuration to only trigger on main branch, but that didn't work, so I now opted in to simply add a `[SKIP CI]` at the end of the commit message to make Codeberg CI ignore this commit.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/32
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Andre601 <andre601@noreply.codeberg.org>
Co-committed-by: Andre601 <andre601@noreply.codeberg.org>
2023-10-27 12:30:45 +00:00
Tealk
ca469fd9dc Add mdbook (#29)
An example to publish pages built with mdbook on Codeberg Pages.

Co-authored-by: Tealk <tealk@rollenspiel.monster>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/29
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Tealk <tealk@noreply.codeberg.org>
Co-committed-by: Tealk <tealk@noreply.codeberg.org>
2023-06-10 11:50:43 +00:00
6543
5444d19d75 Update Syntax to match newest guidelines (#30)
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/30
2023-06-09 15:43:19 +00:00
6543
69265ab6d5 Merge pull request 'adding mkdocs example to the README' (#27) from ccoenen/codeberg-ci-examples:add-mkdocs into main
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/27
Reviewed-by: 6543 <6543@obermui.de>
2023-06-05 15:40:08 +00:00
amenthes
de4c2f3d02 adding mkdocs example to the README 2023-06-05 09:58:32 +02:00
Claudius Coenen
e8bedf044f KiCad / KiBot Example (#26)
In this example, I demonstrate how to create useful automation for KiCad hardware projects. The Pipeline can be seen running in

https://codeberg.org/ccoenen/Codeberg-KiCad-KiBot-Example

or in a modified form in

https://codeberg.org/ccoenen/Dustbuster-Communicator

---

The automation uses "KiBot", to generate common production files. KiBot can do much more, but I limited this demo to gerber files (used in PCB manufacturing) ibom (used to know which components to place where) and a schematic PDF. It is very likely that projects will want to heavily modify this part of the config anyway, so I only include a starting point.

This example _also_ demonstrates how to add the resulting files to the "packages" facility.

Co-authored-by: amenthes <opensource@amenthes.de>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/26
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Claudius Coenen <ccoenen@noreply.codeberg.org>
Co-committed-by: Claudius Coenen <ccoenen@noreply.codeberg.org>
2023-04-10 17:27:38 +00:00
Stefano Volpe
6d5060c967 Add Standard ML pipeline (#25)
Example to check [Standard ML](https://www.smlnj.org/sml.html) files recursively, in a given directory, to make sure they execute without problems.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/25
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
Co-committed-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
2023-04-01 18:08:22 +00:00
Clayton Errington
638b4f4df4 Add NodeJS based solution (#23)
I've been able to successfully make a NodeJS based CI solution to build pages for a static site using eleventy ([11ty.dev](https://11ty.dev)).

## Overview

This process will make use of the following

- Source repo to contain the source code
- Destination repo that will be used to serve the pages
- Codeberg CI (early access)
- Secrets within the CI

## How it works

Currently the `.Woodpecker.yml` file will live in your source codes repo, and have the build commands. Find more [here](https://codeberg.org/cjerrington/eleventy-base-blog-source/src/branch/main/.woodpecker.yml).

For the CI we will start by using the node image, setup the secrets, and build commands.

The use of secrets keeps your information secured and only accessed by the build system. This is beneficial for the email and access token. During the build, the pipeline will clone the source repo, then move into our commands.

We will use the default build dir by 11ty of `_site`. The pipeline will clone our destination repo as _site, then set the remote url for the push after we run our install and build. Once built, it will change directory to the build site and perform our commit and push.

## Accessing the site

On the remote repo we need the default repo to be named pages. This is also houw [Codeberg Pages](https://docs.codeberg.org/codeberg-pages/) setups up the access to what serves the pages we just built. You can follow their documentation on how to access your build site based on `username.codeberg.page`.

Co-authored-by: Clayton Errington <me@claytonerrington.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/23
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Clayton Errington <cjerrington@noreply.codeberg.org>
Co-committed-by: Clayton Errington <cjerrington@noreply.codeberg.org>
2023-03-14 16:34:28 +00:00
laurents
562fafda11 Add example to build and deploy mkdocs to codeberg pages (#24)
An example of pipeline which builds and deploys an `mkdocs` site to codeberg pages.

This is tested and works in https://codeberg.org/openfindata/openfindata.

Co-authored-by: Laurent Savaëte <laurent@where.tf>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/24
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: laurents <laurents@noreply.codeberg.org>
Co-committed-by: laurents <laurents@noreply.codeberg.org>
2023-03-14 16:28:20 +00:00
6543
3dfb0b7226 Add linting pipeline (#22)
close #13

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/22
2023-03-11 02:52:13 +00:00
Stefano Volpe
669defea9e Add Tectonic example (#19)
tested on [foxy/probabilistic-term-rewriting](https://codeberg.org/foxy/probabilistic-term-rewriting) and the PDF file appears to be correctly compiled and pushed.

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/19
Co-authored-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
Co-committed-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
2023-02-15 21:51:31 +00:00
Stefano Volpe
c57333d3ac Fix some spelling/grammar mistakes in various CI examples (#17)
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/17
Co-authored-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
Co-committed-by: Stefano Volpe <stefano.volpe2@studio.unibo.it>
2023-02-15 01:12:24 +00:00
Peter Prumbach
66cf7db148 feat: minify minfied hugo pipeline (#16)
- fix: fatal: destination path '/tmp' already exists and is not an empty directory
- fix: .domains should be copied to repo folder not to hugo output folder
- feat: git commit message must not contain CI SKIP when pages branch is excluded from pipeline

Co-authored-by: Peter Prumbach <mail@peterprumbach.de>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/16
Co-authored-by: Peter Prumbach <ptpu@noreply.codeberg.org>
Co-committed-by: Peter Prumbach <ptpu@noreply.codeberg.org>
2022-11-13 21:40:13 +01:00
6543
286b834e75 Merge pull request 'C/C++ meson projects with or without Android NDK' (#15) from Native-CI/examples:main into main
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/15
2022-10-28 13:07:44 +02:00
Jens Finkhaeuser
31f16777b6
README addition for the previous commit 2022-10-28 11:10:58 +02:00
Jens Finkhaeuser
8bb30f854d
Add recipes for use with Native-CI's C/C++/meson and addtional Android NDK images 2022-10-28 11:09:20 +02:00
6543
e52ab98ccd Merge pull request 'Add a Rust example' (#14) from trevyn/examples:rust into main
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/14
2022-10-19 15:48:39 +02:00
trevyn
ce91c66168 Add a Rust example 2022-10-19 13:48:44 +04:00
Julian Manuel Kleber
51fc52272e Improved the Python CI for better Codequality (#12)
Add script for improved code quality

Co-authored-by: julian <julian.kleber@sail.black>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/12
Co-authored-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org>
Co-committed-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org>
2022-09-11 23:36:22 +02:00
Julian Manuel Kleber
87fc5bac1e Add a Python example (#11)
I added the Python example based on https://codeberg.org/sail.black/serial-sphinx

Co-authored-by: julian <julian.kleber@sail.black>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/11
Co-authored-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org>
Co-committed-by: Julian Manuel Kleber <cap_jmk@noreply.codeberg.org>
2022-09-03 19:21:57 +02:00
ktprograms
5031ce2d6e hugo: simplify (#9)
- Clone writable repo in /tmp/.
- Use writable URL at clone instead of setting remote.

Co-authored-by: kt programs <ktprograms@gmail.com>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/9
Co-authored-by: ktprograms <ktprograms@noreply.codeberg.org>
Co-committed-by: ktprograms <ktprograms@noreply.codeberg.org>
2022-08-28 13:53:51 +02:00
6543
5bcec8c1e4
add multiarch docker (test-)build and publish on codeberg 2022-08-09 01:15:59 +02:00
Solinvictus
0f1fb2dbdb how to push a Docker image (#6)
Without needing access to the Docker daemon ie. exposing `docker.sock`

Co-authored-by: Daniel-Andrei Minca <catalogue-candle.0j@icloud.com>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/6
Co-authored-by: Solinvictus <catalogue-candle.0j@icloud.com>
Co-committed-by: Solinvictus <catalogue-candle.0j@icloud.com>
2022-08-08 16:31:01 +02:00
Jan Wildeboer
5795374dc9 Jekyll cleanup/update (#7)
I forgot to add the Jekyll line to the README, now fixed. I also added a command substituion, so commit message has date and time.

Co-authored-by: Jan Wildeboer <jan@wildeboer.net>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/7
Co-authored-by: Jan Wildeboer <jwildeboer@noreply.codeberg.org>
Co-committed-by: Jan Wildeboer <jwildeboer@noreply.codeberg.org>
2022-08-08 15:09:23 +02:00
Peter Prumbach
ed05614e1d Add example for hugo and codeberg pages (#5)
An example to publish pages built with Hugo on Codeberg Pages. Thanks to [jwildeboer](https://codeberg.org/jwildeboer) for the inspiration and the explanation.

Co-authored-by: Peter Prumbach <mail@peterprumbach.de>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/5
Co-authored-by: Peter Prumbach <peterprumbach@noreply.codeberg.org>
Co-committed-by: Peter Prumbach <peterprumbach@noreply.codeberg.org>
2022-08-01 14:56:40 +02:00
6543
ab0c2ce5d7 'Added Jekyll example with explanation' (#4)
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/4
2022-07-24 20:18:09 +02:00
Jan Wildeboer
744bbde657 Added Jekyll example 2022-07-24 10:16:48 +02:00
JohnWalkerx
28d812b95f Adds some examples to build golang projects (#3)
I added some examples to

- use the CI to build golang projects
- build and publish a 'latest' tagged docker container to DockerHub
- build and publish a version tagged docker container from a version tag to DockerHub

Co-authored-by: JohnWalkerx <johnwalkerx@mailbox.org>
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/3
Co-authored-by: JohnWalkerx <johnwalkerx@noreply.codeberg.org>
Co-committed-by: JohnWalkerx <johnwalkerx@noreply.codeberg.org>
2022-06-26 21:30:46 +02:00
NRK
9695398116 Add an example for Make based projects (#2)
Closes: https://codeberg.org/Codeberg-CI/examples/issues/1
Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/2
Co-authored-by: NRK <nrk@disroot.org>
Co-committed-by: NRK <nrk@disroot.org>
2022-06-16 12:15:56 +02:00
6543
1992508711 Update 'README.md' 2022-06-16 11:46:36 +02:00
Otto Richter
7cf430f51d Initial commit 2022-05-23 23:04:00 +02:00