RUN --mount=type=cache,id=apk-cache,target=/var/cache/apk \
<<EOT
set -e
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk update
apk upgrade
apk add ${PACKAGES}
EOT
I have the same issue with other caches I tried (pnpm store, build dist folders, etc), so that's not related specifically to this path but to the way I implement the action (according to the documentation).
I am probably missing something, but doing the same as the example results in an empty cache :
Dockerfile snippet using this cache :
I have the same issue with other caches I tried (pnpm store, build dist folders, etc), so that's not related specifically to this path but to the way I implement the action (according to the documentation).