From 59774ba8db473db60c6b2de90759a5a1272f06e6 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Tue, 17 Oct 2023 10:09:46 -0700 Subject: [PATCH] add targetarch --- Earthfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Earthfile b/Earthfile index 1259501..41e335a 100644 --- a/Earthfile +++ b/Earthfile @@ -102,6 +102,8 @@ base-alpine: download-etcdctl: FROM +base-alpine + ARG TARGETOS + ARG TARGETARCH RUN curl --retry 5 -Ls https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-${TARGETARCH}.tar.gz | tar -xvzf - --strip-components=1 etcd-${ETCD_VERSION}-linux-${TARGETARCH}/etcdctl && \ chmod +x etcdctl SAVE ARTIFACT etcdctl