Skip to content

Commit

Permalink
pass signing public key as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
kirankn8 committed May 15, 2024
1 parent e36c907 commit f4f3f12
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ARG ISO_NAME=installer
ARG K8S_DISTRIBUTION
ARG CUSTOM_TAG
ARG CLUSTERCONFIG
ARG SIGNING_PUBLIC_KEY
ARG ARCH
ARG DISABLE_SELINUX=true
ARG CIS_HARDENING=true
Expand Down Expand Up @@ -326,7 +327,10 @@ build-uki-iso:
COPY --platform=linux/${ARCH} +luet/luet /overlay/luet

COPY --if-exists content-*/*.zst /overlay/opt/spectrocloud/content/
COPY --if-exists public-key /overlay/.signing-public-key
#check if signing public key is passed in
IF [ "$SIGNING_PUBLIC_KEY" != "" ]
COPY --if-exists "$SIGNING_PUBLIC_KEY" /overlay/.signing-public-key
END
RUN if [ -n "$(ls /overlay/opt/spectrocloud/content/*.zst 2>/dev/null)" ]; then \
for file in /overlay/opt/spectrocloud/content/*.zst; do \
split --bytes=3GB --numeric-suffixes "$file" /overlay/opt/spectrocloud/content/$(basename "$file")_part; \
Expand Down Expand Up @@ -378,7 +382,11 @@ build-iso:
COPY overlay/files-iso/ /overlay/
COPY --if-exists user-data /overlay/files-iso/config.yaml
COPY --if-exists content-*/*.zst /overlay/opt/spectrocloud/content/
COPY --if-exists public-key /overlay/.signing-public-key

#check if signing public key is passed in
IF [ "$SIGNING_PUBLIC_KEY" != "" ]
COPY --if-exists "$SIGNING_PUBLIC_KEY" /overlay/.signing-public-key
END
RUN if [ -n "$(ls /overlay/opt/spectrocloud/content/*.zst 2>/dev/null)" ]; then \
for file in /overlay/opt/spectrocloud/content/*.zst; do \
split --bytes=3GB --numeric-suffixes "$file" /overlay/opt/spectrocloud/content/$(basename "$file")_part; \
Expand Down

0 comments on commit f4f3f12

Please sign in to comment.