Skip to content

feat(cd): add workflow to build QEMU golden images on EC2 - #978

Closed
synacktraa wants to merge 1 commit into
mainfrom
cd/build-qemu-golden-images
Closed

feat(cd): add workflow to build QEMU golden images on EC2#978
synacktraa wants to merge 1 commit into
mainfrom
cd/build-qemu-golden-images

Conversation

@synacktraa

Copy link
Copy Markdown
Contributor

Add a new workflow to automate building QEMU Linux and Windows golden images on EC2 spot instances and upload them to S3.

  • Provision EC2 instances via unblocked/ec2-action-builder with unique runner labels
  • Download ISOs from S3 for fast builds (EC2 ↔ S3 in same region)
  • Run trycua/cua-qemu-linux and trycua/cua-qemu-windows Docker containers
  • Upload golden images to s3://{bucket}/{os}/{date}/
  • Generate build metadata and workflow summary

Workflow Inputs

Input Type Default Description
os choice both Build linux, windows, or both
install_winarena_apps boolean false Install Windows Arena benchmark apps

Required GitHub Configuration

Variables:

  • QEMU_BUILDER_AWS_REGION
  • QEMU_BUILDER_AWS_ACCOUNT_ID
  • QEMU_BUILDER_S3_BUCKET
  • QEMU_BUILDER_IAM_ROLE
  • QEMU_BUILDER_EC2_INSTANCE_TYPE
  • QEMU_BUILDER_EC2_AMI_ID
  • QEMU_BUILDER_EC2_SUBNET_ID
  • QEMU_BUILDER_EC2_SECURITY_GROUP_ID

Secrets:

  • GH_PERSONAL_ACCESS_TOKEN - PAT for EC2 runner registration

Prerequisites

  1. Deploy terraform infrastructure in trycua/cloud (build-qemu-golden-images)
  2. Upload ISOs to S3:
    s3://{bucket}/iso/ubuntu-22.04.5-live-server-amd64.iso
    s3://{bucket}/iso/windows-11-enterprise-eval.iso
    

Test plan

  • Verify workflow syntax with gh workflow view
  • Test Linux-only build
  • Test Windows-only build
  • Test both builds in parallel
  • Verify golden images uploaded to S3 with correct structure

Automates building Linux and Windows golden images using QEMU Docker
containers on EC2 spot instances. Downloads ISOs from S3, runs builds,
and uploads golden images to S3 organized by OS and date.
@vercel

vercel Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 2, 2026 0:15am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants