mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-30 11:25:47 +00:00
ci: Fix paths shown in the website
Right now we're setting the prefix to a custom path, which results in paths like /builds/libvirt/libvirt/vroot/etc/libvirt/virtqemud.conf ending up in the generated HTML. In order to avoid that, set the prefix and other installation paths to reasonable default values by passing -Dsystem=true and then take advantage of $DESTDIR support to still be able to write the HTML files without requiring root privileges. Reported-by: Martin Kletzander <mkletzan@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
03ba5f68b8
commit
24fb0270c6
@ -67,9 +67,9 @@ website:
|
|||||||
before_script:
|
before_script:
|
||||||
- *script_variables
|
- *script_variables
|
||||||
script:
|
script:
|
||||||
- meson setup build --werror --prefix=$(pwd)/vroot || (cat build/meson-logs/meson-log.txt && exit 1)
|
- meson setup build --werror -Dsystem=true || (cat build/meson-logs/meson-log.txt && exit 1)
|
||||||
- ninja -C build install-web
|
- DESTDIR=$(pwd)/install ninja -C build install-web
|
||||||
- mv vroot/share/doc/libvirt/html/ website
|
- mv install/usr/share/doc/libvirt/html/ website
|
||||||
artifacts:
|
artifacts:
|
||||||
expose_as: 'Website'
|
expose_as: 'Website'
|
||||||
name: 'website'
|
name: 'website'
|
||||||
|
Loading…
Reference in New Issue
Block a user