Skip to content

Commit

Permalink
nixos: add VM images from hydra
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stephens <[email protected]>
  • Loading branch information
adamcstephens committed Dec 27, 2023
1 parent 82ce9f5 commit 8bdb3f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jenkins/jobs/image-nixos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 8bdb3f5

Please sign in to comment.