mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-12-18 15:18:35 +00:00
this needs to be set in the container
This commit is contained in:
parent
4fcb0f39f5
commit
b3895856f9
3
.github/workflows/build-empanadas.yml
vendored
3
.github/workflows/build-empanadas.yml
vendored
@ -56,10 +56,9 @@ jobs:
|
|||||||
- name: Build image using empanadas
|
- name: Build image using empanadas
|
||||||
env:
|
env:
|
||||||
IMAGE: ghcr.io/rocky-linux/empanadas-imagefactory:latest
|
IMAGE: ghcr.io/rocky-linux/empanadas-imagefactory:latest
|
||||||
LIBVIRT_DEFAULT_URI:
|
|
||||||
run: |
|
run: |
|
||||||
export VARIANT_ARGS="$(test -z '${{ matrix.type.variant }}' && echo '' || echo '--variant ${{ matrix.type.variant }}')"
|
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}"
|
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 \
|
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 \
|
-v /var/run/libvirt:/var/run/libvirt:rw -v /var/lib/imagefactory:/var/lib/imagefactory:rw \
|
||||||
$IMAGE $CMD
|
-e LIBVIRT_DEFAULT_URI $IMAGE $CMD
|
||||||
|
Loading…
Reference in New Issue
Block a user