diff --git a/Docker/buildx-multi-registries.yaml b/Docker/buildx-multi-registries.yaml new file mode 100644 index 0000000..3011f16 --- /dev/null +++ b/Docker/buildx-multi-registries.yaml @@ -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,.dkr.ecr..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://.dkr.ecr..amazonaws.com + aws_region: + aws_access_key_id: + from_secret: aws_access_key_id + aws_secret_access_key: + from_secret: aws_secret_access_key diff --git a/Docker/buildx.yml b/Docker/buildx.yml index 04341c6..dbd8636 100644 --- a/Docker/buildx.yml +++ b/Docker/buildx.yml @@ -1,9 +1,9 @@ -# Build and publish Docker images for multible architectures. -# -# Pushing an image to codeberg as container registry, -# package owner will be the repo owner. +# Build and publish Docker images for multiple architectures. # -# this config also shows usage of yaml aliases and +# 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 # was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml when: diff --git a/README.md b/README.md index 5059056..45b557e 100644 --- a/README.md +++ b/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