diff --git a/Earthfile b/Earthfile index 937eed5..1259501 100644 --- a/Earthfile +++ b/Earthfile @@ -90,11 +90,18 @@ build-provider-images-fips: BUILD +provider-image --K8S_VERSION=1.27.2 END -download-etcdctl: +base-alpine: FROM alpine ARG TARGETOS ARG TARGETARCH + IF [ ! -z $PROXY_CERT_PATH ] + COPY sc.crt /etc/ssl/certs + RUN update-ca-certificates + END RUN apk add curl + +download-etcdctl: + FROM +base-alpine 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