Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix custom tag #187

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ ELSE
END

IF [ "$CUSTOM_TAG" != "" ]
ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$PE_VERSION-$CUSTOM_TAG
ARG IMAGE_TAG=$PE_VERSION-$CUSTOM_TAG
ELSE
ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$PE_VERSION
ARG IMAGE_TAG=$PE_VERSION
END

ARG IMAGE_PATH=$IMAGE_REGISTRY/$IMAGE_REPO:$K8S_DISTRIBUTION-$K8S_VERSION-$IMAGE_TAG
ARG CMDLINE="stylus.registration"

build-all-images:
Expand Down Expand Up @@ -745,21 +747,14 @@ iso-image:
RUN rm -f /etc/ssh/ssh_host_* /etc/ssh/moduli
RUN touch /etc/machine-id \
&& chmod 444 /etc/machine-id
IF [ "$CUSTOM_TAG" != "" ]
SAVE IMAGE palette-installer-image:$PE_VERSION-$CUSTOM_TAG
ELSE
SAVE IMAGE palette-installer-image:$PE_VERSION
END

SAVE IMAGE palette-installer-image:$IMAGE_TAG

iso-disk-image:
FROM scratch

COPY +iso/*.iso /disk/
IF [ "$CUSTOM_TAG" != "" ]
SAVE IMAGE --push $IMAGE_REGISTRY/$IMAGE_REPO/$ISO_NAME:$PE_VERSION-$CUSTOM_TAG
ELSE
SAVE IMAGE --push $IMAGE_REGISTRY/$IMAGE_REPO/$ISO_NAME:$PE_VERSION
END
SAVE IMAGE --push $IMAGE_REGISTRY/$IMAGE_REPO/$ISO_NAME:$IMAGE_TAG

go-deps:
FROM $SPECTRO_PUB_REPO/golang:${GOLANG_VERSION}-alpine
Expand Down