test-bootc-build

Automate BootC image builds with optional disk image creation and artifact download.

3|11|Updated Oct 16, 2025
One-click install
npx skills add https://github.com/centos-automotive-suite/automotive-dev-operator --skill test-bootc-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-bootc-build
Source: https://github.com/centos-automotive-suite/automotive-dev-operator/tree/main/.claude/skills/test-bootc-build
Command: npx skills add https://github.com/centos-automotive-suite/automotive-dev-operator --skill test-bootc-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the end-to-end BootC image build workflow, eliminating manual steps to build a boot container image, optionally create a disk image, and download the resulting artifact.

Core Features & Use Cases

  • Automated Build: Initiates a BootC image build against a specified configuration.
  • Optional Disk Image: Can create a disk image alongside the container image.
  • Artifact Retrieval: Downloads the build artifact for local testing or distribution.
  • Use Case: A CI pipeline runs a bootc build for each PR, automatically collecting the resulting image for validation.

Quick Start

  1. Set environment:
    • BOOTC_REGISTRY to the base registry (e.g., quay.io/your-org/bootc)
    • REGISTRY_USERNAME and REGISTRY_PASSWORD (or read from registry-user/registry-pass)
  2. Derive CAIB_SERVER from the OpenShift route: CAIB_SERVER="https://$(oc get route ado-build-api -n automotive-dev-operator-system -o jsonpath='{.spec.host}')"
  3. Run a build: bin/caib build-bootc simple.aib.yml
    --server "$CAIB_SERVER"
    --token "$(oc whoami -t)"
    --name "<BUILD_NAME>"
    --arch arm64
    --target qemu
    --push "$BOOTC_REGISTRY:latest"
    --build-disk-image
    --format qcow2
    --export-oci "disk-image-registry:latest-disk"
    --download "./output/<BUILD_NAME>.qcow2"
    --follow