Skip to content

Commit

Permalink
Merge pull request #802 from adamcstephens/nixos/vm
Browse files Browse the repository at this point in the history
nixos: add VM images from hydra
  • Loading branch information
stgraber authored Dec 27, 2023
2 parents 82ce9f5 + 8bdb3f5 commit e554310
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 e554310

Please sign in to comment.