fix(act): insetall AWS S3 cli dependent on the arch
This commit is contained in:
parent
fe161d93fb
commit
8d987b8172
1 changed files with 10 additions and 2 deletions
|
@ -4,6 +4,7 @@ ARG BASE_IMAGE=node:23-bookworm-slim
|
|||
FROM ${BASE_IMAGE}
|
||||
|
||||
ARG LLVM_VERSION=16
|
||||
ARG TARGETARCH
|
||||
|
||||
# common tools
|
||||
RUN --mount=type=cache,target=/var/lib/apt \
|
||||
|
@ -45,6 +46,13 @@ RUN --mount=type=cache,target=/var/lib/apt \
|
|||
|
||||
# AWS CLI
|
||||
RUN --mount=type=cache,target=/tmp \
|
||||
curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" && \
|
||||
unzip /tmp/awscliv2.zip -d /tmp && \
|
||||
if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||
curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \
|
||||
elif [ "${TARGETARCH}" = "arm64" ]; then \
|
||||
curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \
|
||||
else \
|
||||
echo "Unsupported architecture: ${TARGETARCH}"; \
|
||||
exit 1; \
|
||||
fi && \
|
||||
unzip -o /tmp/awscliv2.zip -d /tmp && \
|
||||
/tmp/aws/install
|
||||
|
|
Loading…
Add table
Reference in a new issue