From 23bd5344a26612d07c8a558c30b0fb64ef4afae0 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Mon, 16 Oct 2023 22:46:13 -0700 Subject: [PATCH] add cert in base-alpine --- Earthfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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