Skip to content

Commit

Permalink
+iso-disk-image: build iso and push iso as a oci image
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Aug 14, 2024
1 parent 5f365a0 commit 1f42b18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f42b18

Please sign in to comment.