Skip to main content
Rugix Bakery 0.9.6 is here: Build rules for custom image pipelines and verified boot for EFI and Raspberry Pi. Read the release post.
Documentation
Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.

CI/CD Integration

You can run Rugix 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.

For rootless builds on a Linux runner, use Podman as described in Build Privileges. The Docker examples below use privileged containers, including the host emulation setup step.

GitHub Actions

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

jobs:
  bake-image:
    name: Bake Image
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

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

      - name: Bake Image
        run: ./run-bakery bake system customized

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

GitLab CI/CD

To run Rugix 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.