jjb: Use image type to different vm and container distrobuild images
[lttng-ci.git] / pipelines / images / distrobuild.sh
index 7c2e161d841b5d7eb02bcf46a4ed9f4619c3f13f..a4e6a6c30737a8d69e921cb59c8f199bcbd9205c 100644 (file)
@@ -181,6 +181,10 @@ if [[ "${ARCH}" == "i386" ]] ; then
     rm -rf "${TMP_DIR}"
 fi
 
+# When using `lxc image import` two images cannot have the same alias -
+# only the last image imported will keep the alias. Therefore, the
+# image type is appended as part of the alias.
+IMAGE_NAME="${IMAGE_NAME}/${IMAGE_TYPE}"
 lxc image import "${BUILD_DIR}/incus.tar.xz" "${ROOTFS}" --alias="${IMAGE_NAME}" ci:
 
 if [[ "${TEST}" == "true" ]] ; then
This page took 0.022789 seconds and 4 git commands to generate.