File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8585 # TODO(negz): This could run an interactive shell inside a temporary container
8686 # once https://github.com/earthly/earthly/issues/3206 is fixed.
8787 ARG USERPLATFORM
88+ ARG SIMULATE_CROSSPLANE_VERSION= v0.0.0-hack
8889 ARG XPARGS= "--debug"
8990 LOCALLY
9091 WAIT
@@ -93,15 +94,15 @@ hack:
9394 COPY --platform = ${USERPLATFORM } +helm-setup/helm .hack/helm
9495 COPY --platform = ${USERPLATFORM } +kind-setup/kind .hack/kind
9596 COPY (+helm-build/output --CROSSPLANE_VERSION = v0.0.0-hack) .hack/charts
96- WITH DOCKER --load crossplane-hack/crossplane:hack = +image
97+ WITH DOCKER --load crossplane-hack/crossplane:${ SIMULATE_CROSSPLANE_VERSION } = ( +image --CROSSPLANE_VERSION = ${ SIMULATE_CROSSPLANE_VERSION })
9798 RUN \
9899 .hack/kind create cluster --name crossplane-hack && \
99- .hack/kind load docker-image --name crossplane-hack crossplane-hack/crossplane:hack && \
100+ .hack/kind load docker-image --name crossplane-hack crossplane-hack/crossplane:${ SIMULATE_CROSSPLANE_VERSION } && \
100101 .hack/helm install --create-namespace --namespace crossplane-system crossplane .hack/charts/crossplane-0.0.0-hack.tgz \
101- --set "image.pullPolicy=Never,image.repository=crossplane-hack/crossplane,image.tag=hack " \
102+ --set "image.pullPolicy=Never,image.repository=crossplane-hack/crossplane,image.tag=${SIMULATE_CROSSPLANE_VERSION} " \
102103 --set "args={${XPARGS}}"
103104 END
104- RUN docker image rm crossplane-hack/crossplane:hack
105+ RUN docker image rm crossplane-hack/crossplane:${ SIMULATE_CROSSPLANE_VERSION }
105106 RUN rm -rf .hack
106107
107108# unhack deletes the kind cluster created by the hack target.
You can’t perform that action at this time.
0 commit comments