this needs to be set in the container

This commit is contained in:
Neil Hanlon 2022-10-12 01:28:36 -04:00
parent 4fcb0f39f5
commit b3895856f9
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -56,10 +56,9 @@ jobs:
- name: Build image using empanadas
env:
IMAGE: ghcr.io/rocky-linux/empanadas-imagefactory:latest
LIBVIRT_DEFAULT_URI:
run: |
export VARIANT_ARGS="$(test -z '${{ matrix.type.variant }}' && echo '' || echo '--variant ${{ matrix.type.variant }}')"
export CMD="build-image --version ${{ matrix.version.major }} --type ${{ matrix.type.name }} ${VARIANT_ARGS}"
sudo podman run --rm --privileged --security-opt label=disable --device fuse \
-v /var/run/libvirt:/var/run/libvirt:rw -v /var/lib/imagefactory:/var/lib/imagefactory:rw \
$IMAGE $CMD
-e LIBVIRT_DEFAULT_URI $IMAGE $CMD