Skip to content

Commit

Permalink
add cert in base-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
nianyush committed Oct 17, 2023
1 parent 8e1b3ae commit 23bd534
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23bd534

Please sign in to comment.