Skip to content

Commit

Permalink
fix: content not copied into uki iso (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush authored May 1, 2024
1 parent 0f5ddce commit 68083d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,16 @@ build-uki-iso:
COPY --platform=linux/${ARCH} +stylus-image-pack/stylus-image.tar /overlay/data/stylus-image.tar
COPY --platform=linux/${ARCH} +luet/luet /overlay/data/luet

COPY --if-exists content-*/*.zst /overlay/opt/spectrocloud/content/
COPY --if-exists content-*/*.zst /overlay/data/opt/spectrocloud/content/
#check if clusterconfig is passed in
IF [ "$CLUSTERCONFIG" != "" ]
COPY --if-exists "$CLUSTERCONFIG" /overlay/opt/spectrocloud/clusterconfig/spc.tgz
COPY --if-exists "$CLUSTERCONFIG" /overlay/data/opt/spectrocloud/clusterconfig/spc.tgz
END

COPY --if-exists ui.tar /overlay/opt/spectrocloud/emc/
RUN if [ -f /overlay/opt/spectrocloud/emc/ui.tar ]; then \
tar -xf /overlay/opt/spectrocloud/emc/ui.tar -C /overlay/opt/spectrocloud/emc && \
rm -f /overlay/opt/spectrocloud/emc/ui.tar; \
COPY --if-exists ui.tar /overlay/data/opt/spectrocloud/emc/
RUN if [ -f /overlay/data/opt/spectrocloud/emc/ui.tar ]; then \
tar -xf /overlay/data/opt/spectrocloud/emc/ui.tar -C /overlay/data/opt/spectrocloud/emc && \
rm -f /overlay/data/opt/spectrocloud/emc/ui.tar; \
fi

WORKDIR /build
Expand Down

0 comments on commit 68083d7

Please sign in to comment.