diff --git a/.gitea/workflows/fedora.yaml b/.gitea/workflows/fedora.yaml index 90b73cb..4f4b06e 100644 --- a/.gitea/workflows/fedora.yaml +++ b/.gitea/workflows/fedora.yaml @@ -58,3 +58,12 @@ jobs: tags: git.plabble.org/job79/infra:${{ github.ref_name }} build-args: TAG=${{ github.ref_name }} outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true + - name: Build and push vms container + uses: docker/build-push-action@v5 + with: + context: ./containers/vms + file: ./containers/vms/Containerfile + push: true + tags: git.plabble.org/job79/vms:${{ github.ref_name }} + build-args: TAG=${{ github.ref_name }} + outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true diff --git a/containers/vms/Containerfile b/containers/vms/Containerfile new file mode 100644 index 0000000..dca0f40 --- /dev/null +++ b/containers/vms/Containerfile @@ -0,0 +1,5 @@ +ARG TAG +FROM git.plabble.org/job79/fedora:${TAG} +USER root +RUN dnf -y install qemu-system-x86 +USER user diff --git a/containers/vms/config.sh b/containers/vms/config.sh new file mode 100644 index 0000000..7014b8f --- /dev/null +++ b/containers/vms/config.sh @@ -0,0 +1,3 @@ +#!/bin/bash +arg "--net host" +arg "--device /dev/kvm"