Skip to main content
Version: Next

CI/CD Integration

You can run Rugpi Bakery as part of a CI/CD pipeline, enabling a modern development workflow. Please be aware that building an image is a rather resource-heavy process and may quickly consume your CI minutes.

GitHub Actions

Here is an example for using Rugpi Bakery with GitHub Actions:

name: Bake Image
runs-on: ubuntu-latest
- uses: actions/checkout@v4

- name: Install QEMU
run: docker run --privileged --rm tonistiigi/binfmt --install all

- name: Bake Image
run: ./run-bakery bake image customized build/customized.img

- name: Upload Image
uses: actions/upload-artifact@v4
name: customized.img
path: build/customized.img

GitLab CI/CD

To run Rugpi Bakery in GitLab CI/CD it needs to be configured such that it is able to start Docker containers. If you are using the Docker-based GitLab Runner you must configure it in privileged mode. For details, we refer to GitLab's documentation.