Skip to content

Commit

Permalink
Merge pull request #806 from mweinelt/nixos-stable
Browse files Browse the repository at this point in the history
nixos: Add support for stable release VM images
  • Loading branch information
stgraber authored Dec 31, 2023
2 parents e390b39 + a71a94e commit 3f99602
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jenkins/jobs/image-nixos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
[ "${ARCH}" = "amd64" ] && ARCH="x86_64"
[ "${ARCH}" = "arm64" ] && ARCH="aarch64"
RELEASE=${release}
[ "${RELEASE}" = "unstable" ] && JOBSET="trunk-combined" || JOBSET="release-${RELEASE}"
# 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
curl --location --output ${WORKSPACE}/disk.qcow2 https://hydra.nixos.org/job/nixos/${JOBSET}/nixos.lxdVirtualMachineImage.${ARCH}-linux/latest/download-by-type/file/qcow2-image
exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/nixos.yaml \
${INCUS_ARCHITECTURE} container 14400 ${WORKSPACE} \
Expand Down

0 comments on commit 3f99602

Please sign in to comment.