Merge pull request 'fix: check out with actions/checkout, regenerate the test key with mkosi -f genkey' (#2) from fix-ci-and-test-key into main
os / os (push) Canceled after 0s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
Job79 committed 2026-11-23 18:33:22 +00:00
commit f043ab7fe0
3 files changed
+7 -4

No files matched your search

+5 -2
View File
@@ -19,11 +19,14 @@ on:
jobs: jobs:
os: os:
runs-on: linux runs-on: linux
permissions:
contents: read
packages: write
steps: steps:
- name: Install tools - name: Install tools
run: dnf install -yq mkosi git-core run: dnf install -yq mkosi
- name: Check out - name: Check out
uses: builtin:checkout uses: actions/checkout@v7
- name: Build - name: Build
env: env:
KEY: ${{ secrets.SECUREBOOT_KEY }} KEY: ${{ secrets.SECUREBOOT_KEY }}
+1 -1
View File
@@ -66,7 +66,7 @@ CMD ["/sbin/init"]
END END
podman run -d --name mkosi --privileged --systemd=always -v <repo>:/repo \ podman run -d --name mkosi --privileged --systemd=always -v <repo>:/repo \
-v mkosi-cache:/root/.cache/mkosi -v mkosi-work:/var/tmp -w /repo mkosi-vm -v mkosi-cache:/root/.cache/mkosi -v mkosi-work:/var/tmp -w /repo mkosi-vm
podman exec mkosi mkosi genkey # Run this once, if there is no mkosi.key. podman exec mkosi mkosi -f genkey # Run this once. Don't commit mkosi.crt.
podman exec mkosi mkdir -p mkosi.cache podman exec mkosi mkdir -p mkosi.cache
podman exec -d -t mkosi sh -c 'mkosi -i -f \ podman exec -d -t mkosi sh -c 'mkosi -i -f \
--kernel-command-line-extra=console=ttyS0 vm -- -serial chardev:console \ --kernel-command-line-extra=console=ttyS0 vm -- -serial chardev:console \
+1 -1
View File
@@ -36,7 +36,7 @@ itself up as at first boot.
## Development ## Development
```sh ```sh
mkosi genkey # This is for local tests. CI uses the SECUREBOOT_KEY secret. mkosi -f genkey # This replaces mkosi.crt for local tests. Don't commit it.
mkosi build mkosi build
``` ```