chore: use common curl image
diff --git a/images/curl/Earthfile b/images/curl/Earthfile
new file mode 100644
index 0000000..06d3d8e
--- /dev/null
+++ b/images/curl/Earthfile
@@ -0,0 +1,5 @@
+VERSION 0.7
+
+image:
+ FROM curlimages/curl:7.78.0
+ WORKDIR /tmp
diff --git a/images/helm/Earthfile b/images/helm/Earthfile
index 6809e37..d0b5155 100644
--- a/images/helm/Earthfile
+++ b/images/helm/Earthfile
@@ -1,11 +1,10 @@
VERSION 0.7
binary:
- FROM curlimages/curl:7.78.0
+ FROM ../curl+image
ARG TARGETOS
ARG TARGETARCH
ARG VERSION=3.14.0
- WORKDIR /tmp
RUN curl -LO https://get.helm.sh/helm-v3.14.0-${TARGETOS}-${TARGETARCH}.tar.gz
RUN tar -zxvf /tmp/helm-v3.14.0-${TARGETOS}-${TARGETARCH}.tar.gz
RUN ${TARGETOS}-${TARGETARCH}/helm version
diff --git a/images/kubernetes/Earthfile b/images/kubernetes/Earthfile
index 4a11937..d31c1e0 100644
--- a/images/kubernetes/Earthfile
+++ b/images/kubernetes/Earthfile
@@ -1,7 +1,7 @@
VERSION 0.7
image:
- FROM curlimages/curl:7.78.0
+ FROM ../curl+image
ARG TARGETOS
ARG TARGETARCH
RUN curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/${TARGETOS}/${TARGETARCH}/kubectl" -o /tmp/kubectl