Skip to content

Commit 1065c3c

Browse files
authored
Merge pull request #634 from go-debos/copilot/add-github-actions-usage-docs
docs: Add GitHub Actions usage documentation to README
2 parents ed4dc90 + 18a937f commit 1065c3c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@ docker pull godebos/debos
8383

8484
See [docker/README.md](docker/README.md) for usage.
8585

86+
## Using debos in GitHub Actions
87+
88+
debos can be run in GitHub Actions using the official container with KVM support
89+
for isolated and reproducible builds. The `--fakemachine-backend=kvm` option is
90+
specified to ensure KVM is used as expected:
91+
92+
```yaml
93+
jobs:
94+
build:
95+
runs-on: ubuntu-latest
96+
container:
97+
image: ghcr.io/go-debos/debos:main
98+
options: --device=/dev/kvm
99+
steps:
100+
- uses: actions/checkout@v4
101+
- run: debos --fakemachine-backend=kvm --print-recipe recipe.yaml
102+
```
103+
86104
## Installation from source (under Debian)
87105
88106
```bash

0 commit comments

Comments
 (0)