From 8bdb3f5244230d33d239fa8a3600bbfada8f93eb Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Wed, 27 Dec 2023 16:46:10 -0500 Subject: [PATCH] nixos: add VM images from hydra Signed-off-by: Adam Stephens --- jenkins/jobs/image-nixos.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jenkins/jobs/image-nixos.yaml b/jenkins/jobs/image-nixos.yaml index f674cf32..79ba8f45 100644 --- a/jenkins/jobs/image-nixos.yaml +++ b/jenkins/jobs/image-nixos.yaml @@ -35,6 +35,11 @@ [ "${ARCH}" = "amd64" ] && ARCH="x86_64" [ "${ARCH}" = "arm64" ] && ARCH="aarch64" + # download a pre-built VM image + if [ "${release}" = "unstable" ]; then + curl --location --output ${WORKSPACE}/disk.qcow2 https://hydra.nixos.org/job/nixos/trunk-combined/nixos.lxdVirtualMachineImage.${ARCH}-linux/latest/download-by-type/file/qcow2-image + fi + exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/nixos.yaml \ ${INCUS_ARCHITECTURE} container 14400 ${WORKSPACE} \ -o image.architecture=${ARCH} \