From 1f42b183d8036c6ffa321b770dba613b5a3d4488 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Wed, 14 Aug 2024 12:39:05 -0700 Subject: [PATCH] +iso-disk-image: build iso and push iso as a oci image Signed-off-by: Nianyu Shen --- Earthfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Earthfile b/Earthfile index b8d28fb..f402aca 100644 --- a/Earthfile +++ b/Earthfile @@ -116,6 +116,7 @@ ELSE END ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$IMAGE_TAG +ARG ISO_DISK_IMG=$IMAGE_REGISTRY/$IMAGE_REPO/$ISO_NAME:$IMAGE_TAG ARG CMDLINE="stylus.registration" build-all-images: @@ -866,10 +867,11 @@ iso-image: SAVE IMAGE palette-installer-image:$IMAGE_TAG iso-disk-image: - FROM scratch + BUILD +iso + FROM scratch COPY +iso/*.iso /disk/ - SAVE IMAGE --push $IMAGE_REGISTRY/$IMAGE_REPO/$ISO_NAME:$IMAGE_TAG + SAVE IMAGE --push $ISO_DISK_IMG go-deps: FROM $SPECTRO_PUB_REPO/golang:${GOLANG_VERSION}-alpine