Skip to content

ci: build the ISO and the qcow2 image, and publish them on a tag - #7

Closed
dodolia907 wants to merge 2 commits into
mainfrom
ci/build-image
Closed

dodolia907 wants to merge 2 commits into
mainfrom
ci/build-image

Conversation

@dodolia907

Copy link
Copy Markdown
Member

What

.github/workflows/build-image.yml: pushing a v* tag builds the ISO and the qcow2 image in GitHub Actions and publishes both, with SHA256SUMS, as the release. Until now the ISO was built by hand and uploaded by hand.

  1. build the ISO: live-build in a privileged debian:trixie container (make config + lb build, as in the Dev Container);
  2. make qcow2 (feat: add make qcow2 for virtual machines #5);
  3. boot test: the ISO is booted under QEMU/KVM (direct kernel boot, serial console) and the job fails unless it reaches utone-<6 hex digits> login:, i.e. the MAC-derived hostname of feat: name each machine after its MAC address and advertise it over mDNS #4. It is skipped, with a message, on a runner without /dev/kvm;
  4. on a tag only: gh release create with the ISO, the qcow2 and SHA256SUMS (or gh release upload --clobber if the release already exists).

A pull request that changes the workflow or the Makefile, and a manual run, do 1-3 without publishing. About an hour, 150 minutes at most.

Licensing

The image has the NDI runtime and dmxctl (GPL-linked Ableton Link), which must stay in the organization. The job has if: github.repository == 'TechnoTUT/utone-linux', so it is skipped in utone-linux-public, where sync-public.yml mirrors this file. Release assets of a private repository are visible to its members only.

Sizes

ISO about 1.77 GB, qcow2 about 1.64 GiB, both under GitHub's limit of 2 GiB per release asset (the v26.11.3 ISO, 1.95 GB, was close to it).

Testing

The same steps were run by hand before: the ISO builds in the privileged container (24 min on 4 cores), make qcow2 works, and the boot with the same QEMU command line reaches utone-123456 login:. The workflow itself has not run yet; this PR's own run is its first test (it builds, converts and boots, and does not publish).

🤖 Generated with Claude Code

dodolia907 and others added 2 commits November 22, 2026 22:57
Pushing a v* tag builds the ISO with live-build in a privileged Debian
trixie container, converts it to qcow2 with `make qcow2`, boots it under
QEMU/KVM to check that it reaches a login prompt with a MAC-derived
hostname, and attaches the ISO, the qcow2 and SHA256SUMS to the release. A
pull request that changes the workflow or the Makefile, and a manual run,
build and test without publishing. It runs only in the private repository:
the image has the NDI runtime and dmxctl, and the file is mirrored to the
public repository, where the job is skipped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The image contains the NDI runtime, which must not be published, so the release
is made in the private repository TechnoTUT/utone-linux-releases (where the
earlier releases were moved). GITHUB_TOKEN cannot write to another repository:
the secret RELEASES_TOKEN (a fine-grained personal access token limited to that
repository) is used, and the job stops with a clear error if it is missing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dodolia907

Copy link
Copy Markdown
Member Author

Pushed 6eeb583: the release is now published to the private TechnoTUT/utone-linux-releases (the images contain the NDI runtime and must not be published here; the 18 earlier releases were moved there on 2026-11-22). GITHUB_TOKEN cannot write to another repository, so before the first tag push someone with admin rights must create a fine-grained personal access token ("Contents: read and write" on utone-linux-releases only) and store it as the Actions secret RELEASES_TOKEN. Without it the publish step fails with a clear error. This PR is still not merged, on purpose: the Actions quota is exhausted, so the workflow could not be tested yet.

🤖 Generated with Claude Code

dodolia907 added a commit that referenced this pull request Nov 28, 2026
Port of #7 to the new build: a v* tag runs make build, make test (QEMU/KVM)
and make release, and attaches the files to a release of the private
TechnoTUT/utone-linux-releases (secret RELEASES_TOKEN). Pull requests that
change the build and manual runs build and test without publishing. The
builder image is pulled from GHCR with the workflow's token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dodolia907 added a commit that referenced this pull request Nov 28, 2026
…ild (#10)

Replace live-build with a minimal Debian (trixie) disk image and ISO built with mmdebstrap in a builder container (about 6 minutes for a rebuild with no changes). Read-only root with settings on the utone-data partition, hostname from the MAC address, no default password, NDI runtime bundled. Adds make test (QEMU/KVM boot of the img and ISO), make release, the GHCR builder image workflow and the release workflow (port of #7). Updates the apps and the NDI discovery server address, and rewrites the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dodolia907

Copy link
Copy Markdown
Member Author

Replaced by #10, which ports this workflow to the new mmdebstrap build (make build, make test, make release) and publishes to TechnoTUT/utone-linux-releases in the same way.

@dodolia907
dodolia907 deleted the ci/build-image branch November 30, 2026 13:59
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.

1 participant