fix: cache issue in act image build

This commit is contained in:
Peter 2025-02-12 15:48:13 +01:00
parent df2c1b7d81
commit b8cf004a6a
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -9,8 +9,7 @@ ARG TARGETARCH
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
# common tools
RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/lib/cache \
RUN --mount=type=cache,target=/var/lib/cache \
--mount=type=cache,target=/var/cache/apt \
apt-get update && \
apt-get install -y \
@ -30,6 +29,7 @@ RUN --mount=type=cache,target=/var/lib/apt \
nodejs \
libgraphite2-3 \
zstd && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/lib/llvm-${LLVM_VERSION}/bin/clang /usr/bin/clang && \
ln -s -f /usr/lib/llvm-${LLVM_VERSION}/bin/llc /usr/bin/
@ -37,8 +37,7 @@ ADD --chmod=444 https://cli.github.com/packages/githubcli-archive-keyring.gpg /e
ADD --chmod=444 https://download.docker.com/linux/debian/gpg /etc/apt/keyrings/docker.asc
# Docker and other tools
RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/lib/cache \
RUN --mount=type=cache,target=/var/lib/cache \
--mount=type=cache,target=/var/cache/apt \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && \
echo \
@ -46,7 +45,8 @@ RUN --mount=type=cache,target=/var/lib/apt \
apt-get update && \
apt-get install -y \
gh \
docker-ce-cli docker-buildx-plugin
docker-ce-cli docker-buildx-plugin && \
rm -rf /var/lib/apt/lists/*
# Rclone
RUN curl https://rclone.org/install.sh | bash