Repository navigation
ci: build the ISO and the qcow2 image, and publish them on a tag - #7
dodolia907 wants to merge 2 commits into
Conversation
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>
|
Pushed 6eeb583: the release is now published to the private 🤖 Generated with Claude Code |
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>
…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>
|
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. |
What
.github/workflows/build-image.yml: pushing av*tag builds the ISO and the qcow2 image in GitHub Actions and publishes both, withSHA256SUMS, as the release. Until now the ISO was built by hand and uploaded by hand.debian:trixiecontainer (make config+lb build, as in the Dev Container);make qcow2(feat: add make qcow2 for virtual machines #5);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;gh release createwith the ISO, the qcow2 andSHA256SUMS(orgh release upload --clobberif 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 inutone-linux-public, wheresync-public.ymlmirrors 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.3ISO, 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 qcow2works, and the boot with the same QEMU command line reachesutone-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