chore: install Claude Code from its package repository, add style guide

Replace mkosi.prepare with Anthropic's rpm repository (mkosi.sandbox/),
switch the workflow to the gitea context, and start STYLE.md with a
consistent file header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-16 20:08:36 +01:00
1 parent bbd0364792
commit b7bbbf215b
10 files changed
+96 -28

No files matched your search

+6 -9
View File
@@ -1,28 +1,27 @@
# agent OS image
#
# Builds the OS image and publishes it as version "latest" of the generic package agent, where VMs
# fetch their updates (mkosi.extra/usr/lib/sysupdate.d). Runs on every push, weekly for Fedora and
# Claude Code updates, and by hand.
# Builds the OS image and publishes it as version "latest". VMs fetch the build
# images as updates (mkosi.extra/usr/lib/sysupdate.d). Runs on every push,
# weekly for package updates, and by hand for critical CVE's.
name: os
on:
push:
branches: [main]
schedule:
- cron: "0 2 * * 0" # weekly (Sunday), picks up Fedora and Claude Code updates
- cron: "0 2 * * 0" # weekly (Sunday), picks up package updates
workflow_dispatch: # run by hand, e.g. for a CVE
jobs:
os:
runs-on: linux
env:
PKG: ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/agent/latest
AUTH: "Authorization: token ${{ github.token }}"
PKG: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/agent/latest
AUTH: "Authorization: token ${{ gitea.token }}"
steps:
- name: Install tools
run: dnf install -yq mkosi sbsigntools
- name: Check out
uses: builtin:checkout
# Signs systemd-boot and the UKI for Secure Boot (mkosi.conf, [Validation]).
- name: Build
env:
KEY: ${{ secrets.SECUREBOOT_KEY }}
@@ -35,7 +34,6 @@ jobs:
zstd -q --rm -T0 -19 agent_*.root-*.raw
qemu-img convert -c -O qcow2 "$(basename agent_*.efi .efi).raw" agent.qcow2
sha256sum agent_*.efi agent_*.root-*.raw.zst > SHA256SUMS
# Signs SHA256SUMS with the key whose public half is mkosi.extra/usr/lib/systemd/import-pubring.pgp.
- name: Sign
working-directory: mkosi.output
env:
@@ -44,7 +42,6 @@ jobs:
export GNUPGHOME=$(mktemp -d)
gpg -q --batch --import <<< "$KEY"
gpg -q --batch -o SHA256SUMS.gpg --detach-sign SHA256SUMS
# Replaces the previous version. SHA256SUMS goes last: until it's there, VMs find no update.
- name: Publish
working-directory: mkosi.output
run: |