1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-12 17:44:33 +02:00

fix docker build cache

This commit is contained in:
Nick Sweeting
2024-10-08 00:38:04 -07:00
parent d9fef4cd84
commit 58e37a5e19
4 changed files with 8 additions and 5 deletions

View File

@@ -50,12 +50,12 @@ echo "${FULL_TAG_NAMES[@]}"
# docker login ghcr.io --username=pirate
echo "[^] Uploading docker image"
mkdir -p ~/.cache/docker/archivebox
mkdir -p "$HOME/.cache/docker/archivebox"
# https://docs.docker.com/build/cache/backends/
# shellcheck disable=SC2068
exec docker buildx build \
--platform "$SELECTED_PLATFORMS" \
--cache-from type=local,src=~/.cache/docker/archivebox \
--cache-to type=local,compression=zstd,mode=min,oci-mediatypes=true,dest=~/.cache/docker/archivebox \
--cache-from type=local,src="$HOME/.cache/docker/archivebox" \
--cache-to type=local,compression=zstd,mode=min,oci-mediatypes=true,dest="$HOME/.cache/docker/archivebox" \
--push . ${FULL_TAG_NAMES[@]}