mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-15 14:55:06 -04:00
Various fixes (#38)
see commits Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/38 Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com>
This commit is contained in:
parent
dea4421243
commit
73ef96d755
29
Docker/buildx-multi-registries.yaml
Normal file
29
Docker/buildx-multi-registries.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
# Build and publish Docker images to multiple registries.
|
||||
#
|
||||
# The `logins` map is used to login to multiple registries, here codeberg.org and AWS ECR
|
||||
# The `repo` setting holds the repo names in the same order as the registries are defined in `logins`
|
||||
|
||||
when:
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: 6543/tmp,codeberg.org/6543/tmp,<account-id>.dkr.ecr.<region>.amazonaws.com/6543/tmp
|
||||
tag: demo
|
||||
logins:
|
||||
- registry: https://index.docker.io/v1/
|
||||
username: a6543
|
||||
password:
|
||||
from_secret: docker_token
|
||||
- registry: https://codeberg.org
|
||||
username: "6543"
|
||||
password:
|
||||
from_secret: cb_token
|
||||
- registry: https://<account-id>.dkr.ecr.<region>.amazonaws.com
|
||||
aws_region: <region>
|
||||
aws_access_key_id:
|
||||
from_secret: aws_access_key_id
|
||||
aws_secret_access_key:
|
||||
from_secret: aws_secret_access_key
|
@ -1,9 +1,9 @@
|
||||
# Build and publish Docker images for multible architectures.
|
||||
# Build and publish Docker images for multiple architectures.
|
||||
#
|
||||
# Pushing an image to codeberg as container registry,
|
||||
# package owner will be the repo owner.
|
||||
# Pushing an image to codeberg's container registry
|
||||
# The package owner will be the repo owner.
|
||||
#
|
||||
# this config also shows usage of yaml aliases and
|
||||
# This config also shows usage of yaml aliases and
|
||||
# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml
|
||||
|
||||
when:
|
||||
|
30
README.md
30
README.md
@ -1,35 +1,33 @@
|
||||
# examples
|
||||
# Woodpecker examples
|
||||
|
||||
Example Woodpecker pipeline files (WIP).
|
||||
Pull requests are accepted/welcome.
|
||||
|
||||
## Example pipeline files
|
||||
Example Woodpecker pipelines for various use cases.
|
||||
Pull requests are welcome!
|
||||
|
||||
| Link | Language | Build System | Comments |
|
||||
| :--------------------------------------------------- | :---------- | :------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [KiCad/kibot.yml](KiCad/kibot.yml) | --- | KiBot | Building gerber files, ibom and a pdf schematic as an example for KiBot use |
|
||||
| [C/make.yml](C/make.yml) | C | Make | Simple ci for building a Make based C project |
|
||||
| [C/meson.yml](C/meson.yml) | C/C++ | meson | CI for meson-based projects. |
|
||||
| [C/meson-android.yml](C/meson-android.yml) | C/C++ | meson + Android NDK | CI for meson-based projects cross-compiling to Android NDK. |
|
||||
| [golang/build.yml](golang/build.yml) | golang | golang | Simple ci for building and test a Go project |
|
||||
| [golang/build-docker.yml](golang/build-docker.yml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub |
|
||||
| [Jekyll/jekyll.yml](Jekyll/jekyll.yml) | Markdown | Jekyll | CI step to build static website files and publish them to Codeberg Pages using Jekyll |
|
||||
| [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo |
|
||||
| [Docker/kaniko.yml](Docker/kaniko.yml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image |
|
||||
| [Docker/buildx.yml](Docker/buildx.yml) | Dockerfile | [buildx][2] | Build and publish Docker images for multiple architectures on codeberg |
|
||||
| [Python/.woodpecker.yml](Python) | Python | Python venv | Standard CI pipeline to test Python packages code on multiple Python distributions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git) |
|
||||
| [golang/build.yml](golang/build.yml) | golang | golang | Simple ci for building and test a Go project |
|
||||
| [golang/build-docker.yml](golang/build-docker.yml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub |
|
||||
| [NodeJS/11ty.yml](NodeJS/11ty.yml) | JavaScript | NodeJS | CI to build static websites files and publish them to Codeberg Pages with 11ty |
|
||||
| [tectonic/.woodpecker.yml](tectonic/.woodpecker.yml) | LaTeX | Tectonic | Builds a TeX file and pushes the resulting PDF file to a given repository. |
|
||||
| [Jekyll/jekyll.yml](Jekyll/jekyll.yml) | Markdown | Jekyll | CI step to build static website files and publish them to Codeberg Pages using Jekyll |
|
||||
| [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo |
|
||||
| [Python/mkdocs.yml](Python/mkdocs.yml) | Markdown | MkDocs | Static Site Generator mkdocs example |
|
||||
| [mdbook/mdbook.yml](mdbook/mdbook.yml) | Markdown | mdbook | CI step to build static website files and publish them to Codeberg Pages with mdbook |
|
||||
| [Python/.woodpecker.yml](Python) | Python | Python venv | Standard CI pipeline to test Python packages code on multiple Python distributions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git) |
|
||||
| [Python/pdoc.yml](Python/pdoc.yml) | Python | Python venv | Build API documentation with pdoc & publish files on a pages branch |
|
||||
| [Rust/.woodpecker.yml](Rust) | Rust | cargo | Simple CI pipeline to run cargo commands |
|
||||
| [StandardML/sml.yml](StandardML) | Standard ML | sml | Simple CI pipeline to run SML files |
|
||||
| [tectonic/.woodpecker.yml](tectonic/.woodpecker.yml) | LaTeX | Tectonic | Builds a TeX file and pushes the resulting PDF file to a given repository. |
|
||||
| [Typst/.woodpecker.yml](Typst/.woodpecker.yml) | Typst | Typst | Builds a Typst file and pushes the resulting PDF file to a given repository. |
|
||||
| [NodeJS/11ty.yml](NodeJS/11ty.yml) | JavaScript | NodeJS | CI to build static websites files and publish them to Codeberg Pages with 11ty |
|
||||
| [KiCad/kibot.yml](KiCad/kibot.yml) | --- | KiBot | Building gerber files, ibom and a pdf schematic as an example for KiBot use |
|
||||
| [mdbook/mdbook.yml](mdbook/mdbook.yml) | Markdown | mdbook | CI step to build static website files and publish them to Codeberg Pages with mdbook |
|
||||
|
||||
# More:
|
||||
## More examples from Codeberg
|
||||
|
||||
https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1
|
||||
[https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1](https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1)
|
||||
|
||||
[1]: https://github.com/GoogleContainerTools/kaniko
|
||||
[2]: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx
|
||||
|
Loading…
x
Reference in New Issue
Block a user